*/
public SessionInfo obtain(Credentials credentials, String workspaceName)
throws LoginException, NoSuchWorkspaceException, RepositoryException {
checkCredentials(credentials, workspaceName);
if (!wspNames.contains(workspaceName)) {
throw new NoSuchWorkspaceException(workspaceName);
}
String userId = null;
if (credentials instanceof SimpleCredentials) {
userId = ((SimpleCredentials) credentials).getUserID();
}