return null;
}
private String getModuleName(String classpathComponent)
{
Path path = Vfs.lookup(classpathComponent);
String tail = path.getTail();
String moduleName = classpathComponent;
if (classpathComponent.endsWith(".jar")
|| classpathComponent.endsWith(".war")) {
moduleName = tail.substring(0, tail.length() - ".jar".length());
path = JarPath.create(path);
}
Path ejbJarXml = path.lookup("META-INF/ejb-jar.xml");
if (ejbJarXml.canRead()) {
String ejbJarModuleName = scanEjbJarXml(ejbJarXml);
if (ejbJarModuleName != null)
moduleName = ejbJarModuleName;
}