/**
* {@inheritDoc}
*/
public SessionInfo obtain(Credentials credentials, String workspaceName)
throws LoginException, NoSuchWorkspaceException, RepositoryException {
Credentials duplicate = SessionInfoImpl.duplicateCredentials(credentials);
return new SessionInfoImpl(repository.login(credentials, workspaceName), duplicate, getNameFactory(), getPathFactory());
}