VirtualFile parent = deploymentUnitFile.getParent().getParent().getParent();
VirtualFile baseDir = (parent != null ? parent : deploymentUnitFile);
VirtualFile jarFile = baseDir.getChild(jar);
if (jarFile == null)
throw MESSAGES.childNotFound(jar, baseDir);
return jarFile.toURL();
} catch (Exception e1) {
throw MESSAGES.relativePathNotFound(e1, jar);
}
}
}