/** * Gets the File containing the BPEL process definition * @return - the File object containing the BPEL process */ private static File getContainer(String location) { try { File theProcess = null; URI locationURI = createURI(location); String protocol = locationURI.getScheme(); if ("file".equals(protocol)) { theProcess = new File(locationURI); } else if ("jar".equals(protocol) || "wsjar".equals(protocol) || "zip".equals(protocol)) { String uri = locationURI.toString(); // jar contribution uri = uri.substring(protocol.length() + 1, uri.lastIndexOf("!/")); locationURI = createURI(uri); if ("file".equals(locationURI.getScheme())) { theProcess = new File(locationURI); } } return theProcess; } catch (Exception e) { logger.log(Level.SEVERE, "Exception converting BPEL file URL to an URI: " + location, e); } // end try return null; } // end getBPELFile