// create and login JCR session
Credentials credentials = new SimpleCredentials(repositoryUser, repositoryPassword.toCharArray());
Session session = ((repositoryWorkspace != null) ? repository.login(credentials, repositoryWorkspace) : repository.login(credentials));
// return session object content manager for session
return new SessionObjectContentManagerImpl(session, new AnnotationMapperImpl(CLASS_LIST));
}
/* (non-Javadoc)
* @see org.apache.commons.pool.BasePoolableObjectFactory#destroyObject(java.lang.Object)
*/