&& ( repositoryDocument = (Document) cacheManager.getFromSessionCache( userSession, CACHE_REPOSITORY_DOCUMENT ) ) != null ) {
logger.debug( "Repository Document found in cache" );
return repositoryDocument;
} else {
// System.out.println(Calendar.getInstance().getTime() + ": Getting repository Document");
final DOMReader reader = new DOMReader();
repositoryDocument =
reader.read( PentahoSystem.get( ISolutionRepositoryService.class, userSession ).getSolutionRepositoryDoc(
userSession, new String[0] ) );
cacheManager.putInSessionCache( userSession, CACHE_REPOSITORY_DOCUMENT, repositoryDocument );
// System.out.println(Calendar.getInstance().getTime() + ": Repository Document Returned");
}