FileObject applicationFolder = manager.resolveFile(url);
return applicationFolder;
}
private FileObject getApplicationArchive(final DefaultFileSystemManager manager, final String jarPath) throws FileSystemException {
manager.addProvider("file", new DefaultLocalFileProvider());
manager.addProvider("zip", new ZipFileProvider());
manager.init();
File src = new File(jarPath);
FileObject applicationFolder = manager.resolveFile("zip:/" + src.getAbsolutePath());
return applicationFolder;