final List<FeaturesRepository> featuresRepositories = new ArrayList<FeaturesRepository>();
final IResource[] resources = featuresFolder.members();
for (final IResource resource : resources) {
if (resource.getFileExtension().equalsIgnoreCase("xml")) {
fin = new FileInputStream(resource.getRawLocation().toFile());
final XmlFeaturesRepository xmlFeatureRepository = new XmlFeaturesRepository(resource.getName(), fin);
featuresRepositories.add(xmlFeatureRepository);
fin.close();
}
}