private List<AProjectFolder> getPRepositoryProjects(RepositoryConfiguration repoConfig) {
   try {
     Repository repository =
         productionRepositoryFactoryProxy.getRepositoryInstance(repoConfig.getConfigName());
     return new ArrayList<AProjectFolder>(DeployUtils.getLastDeploymentProjects(repository));
   } catch (RRepositoryException e) {
     return new ArrayList<AProjectFolder>();
   }
 }
  @Override
  protected void setUp() throws Exception {
    ensureTestFolderExistsAndClear();

    productionRepositoryFactoryProxy = new ProductionRepositoryFactoryProxy();
    productionRepositoryFactoryProxy.setConfigManagerFactory(
        new ConfigurationManagerFactory(true, null, ""));

    instance =
        new JcrRulesClient(
            productionRepositoryFactoryProxy,
            ProductionRepositoryFactoryProxy.DEFAULT_REPOSITORY_PROPERTIES_FILE);

    project = makeProject();
  }
 @Override
 protected void tearDown() throws Exception {
   productionRepositoryFactoryProxy.destroy();
   deleteTestFolder();
 }