private String getTableName(EntityKeyMetadata entityKeyMetadata) {
return entityKeyMetadata.getTable();
}
private static ResteasyClient createRestClient(DatabaseIdentifier database) {
ResteasyClientBuilder clientBuilder = new ResteasyClientBuilder();
if ( database.getUserName() != null ) {
clientBuilder.register( new BasicAuthentication( database.getUserName(), database.getPassword() ) );
}
// using a connection pool size > 1 causes a thread-safe pool implementation to be used under the hoods
return clientBuilder
.connectionPoolSize( CONNECTION_POOL_SIZE )
.build();
}