for (String name : getInitialFeatureNames()) {
String resname = "META-INF/repository-content/" + name + ".feature.xml";
URL resurl = getClass().getClassLoader().getResource(resname);
InputStream input = resurl.openStream();
RepositoryReader reader = new DefaultRepositoryXMLReader(input);
Resource auxres = reader.nextResource();
while (auxres != null) {
String identity = auxres.getIdentity().toString();
if (repository.getResource(identity) == null) {
repository.addResource(auxres.adapt(CompositeData.class));
}