if (bundle != null) {
try {
URL url = FileLocator.resolve(bundle.getEntry("/")); //$NON-NLS-1$
url = FileLocator.toFileURL(url);
String path = url.getFile();
if (path.startsWith("file:")) { //$NON-NLS-1$
path = path.substring(5);
}
path = new File(path).getAbsolutePath();