.format(
"There is no suitable RepositoryAccess instance in the environment. \n Repository URL: %s\n Workspace identifier: %s\n Username: %s\n Password: %s\n Connection type: %s",
connectionInfo.getRepositoryURL(), connectionInfo.getWorkspaceName(),
connectionInfo.getUsername(), connectionInfo.getPassword(),
connectionInfo.getConnectionType()));
throw new RepositoryAccessException(
"There is no suitable RepositoryAccess instance in the environment. Please refer to logs");
}
} else {
log.warn("There is no cached session for the key: {}", sessionKey);
throw new RepositoryAccessException(String.format("There is no cached session for the key: %s",
sessionKey));
}
}