serverUrl = serverUrl + "/" + workspaceName;
logger.debug("Using server url: {0}", serverUrl);
// this is only a connection test to confirm a connection can be made and results can be obtained.
try {
this.restClient = new ModeShapeRestClient(serverUrl, username, String.valueOf(password));
Repositories repositories = this.restClient.getRepositories();
this.setRepositoryNames(repositories.getRepositoryNames());
Repositories.Repository repository = repositories.getRepository(repositoryName);
if (repository == null) {
throw new SQLException(JdbcLocalI18n.unableToFindNamedRepository.text(path, repositoryName));
}
this.repository.compareAndSet(null, repository);
} catch (Exception e) {