Keycloak blocking requests when trying to create multiple resources

I am creating a tool to migrate authorization data from a proprietary application to Keycloak. For this I am using the admin rest client to register the new resources created, however after 10 requests the Keycloak stops accepting new create requests.

How can I stop Keycloak from blocking requests and continue registering resources?

Is there something connected with this connection pool-size in this code ? ClientBuilderWrapper.java Admin Client

My problem was that the response was not being closed, so it freezes the application.