for (String path : manifestcp) {
path = path.replaceAll(" ", "%20");
URL url = moduleBaseURI.resolve(path).toURL();
urls[i++] = url;
}
ResourceFinder finder = new ResourceFinder("", null, urls);
List<URL> knownPersistenceUrls = (List<URL>) rootGeneralData.get(PersistenceUnitBuilder.class.getName());
if (knownPersistenceUrls == null) {
knownPersistenceUrls = new ArrayList<URL>();
rootGeneralData.put(PersistenceUnitBuilder.class.getName(), knownPersistenceUrls);
}
List<URL> persistenceUrls = finder.findAll("META-INF/persistence.xml");
persistenceUrls.removeAll(knownPersistenceUrls);
if (raws.length > 0 || persistenceUrls.size() > 0) {
EnvironmentBuilder.mergeEnvironments(module.getEnvironment(), defaultEnvironment);
}
for (URL persistenceUrl : persistenceUrls) {