URL configurationBaseURL,
ClassLoader classLoader) throws URISyntaxException, MalformedURLException, ResourceException {
List<String> mappingFileNames = mappingFileNamesUntyped == null? NO_STRINGS: new ArrayList<String>(mappingFileNamesUntyped);
this.persistenceUnitRoot = persistenceUnitRoot;
URI configurationBaseURI = new File(configurationBaseURL.getFile()).toURI();
URL rootURL = configurationBaseURI.resolve(persistenceUnitRoot).normalize().toURL();
List<URL> jarFileUrls = NO_URLS;
if (!excludeUnlistedClassesValue) {
jarFileUrls = new ArrayList<URL>();
//Per the EJB3.0 Persistence Specification section 6.2, the jar-file should be related to the Persistence Unit Root, which is the jar or directory where the persistence.xml is found
URI persistenceUnitBaseURI = configurationBaseURI.resolve(persistenceUnitRoot);