(ConfigurationManagerImpl)container.getComponentInstanceOfType(ConfigurationManagerImpl.class);
InitialContextInitializer context =
(InitialContextInitializer)container.getComponentInstanceOfType(InitialContextInitializer.class);
String defaultRepositoryName = repositoryService.getConfig().getDefaultRepositoryName();
TesterRepositoryServiceConfigurationImpl repositoryServiceConfiguration =
new TesterRepositoryServiceConfigurationImpl(new RepositoryServiceConfigurationImpl(params, configManager,
context));
repositoryServiceConfiguration.setDefaultRepositoryName(defaultRepositoryName);
File configPath = repositoryServiceConfiguration.getContentPath();
final String configFileName = repositoryServiceConfiguration.getConfigFileName();
for (int i = 1; i <= 10; i++)
{
repositoryServiceConfiguration.retain();
}
String[] files = configPath.list(new FilenameFilter()
{
public boolean accept(File dir, String name)