{
repositoryContent = repositoryContentFactory.getManagedRepositoryContent( repository.getId() );
}
catch ( RepositoryNotFoundException e )
{
throw new ConsumerException( "Can't run repository purge: " + e.getMessage(), e );
}
catch ( RepositoryException e )
{
throw new ConsumerException( "Can't run repository purge: " + e.getMessage(), e );
}
repositorySession = repositorySessionFactory.createSession();
if ( repository.getDaysOlder() != 0 )