sb.append("\t\t<module-name>").append(path.substring(3, path.length())).append(".war</module-name>\n");
SAXReader reader = new SAXReader();
reader.setEntityResolver(new EntityResolver());
Document doc = reader.read(new File(filePath));
Iterator itr = doc.getRootElement().elements("ejb-local-ref").iterator();
while (itr.hasNext()) {
Element ejbLocalRef = (Element)itr.next();
sb.append("\t\t<ejb-local-ref>\n");
sb.append("\t\t\t<ejb-ref-name>").append(ejbLocalRef.elementText("ejb-ref-name")).append("</ejb-ref-name>\n");
sb.append("\t\t\t<ejb-link>").append(ejbLocalRef.elementText("ejb-link")).append("</ejb-link>\n");
sb.append("\t\t</ejb-local-ref>\n");
}
itr = doc.getRootElement().elements("resource-ref").iterator();
while (itr.hasNext()) {
Element resourceRef = (Element)itr.next();
sb.append("\t\t<resource-mapping>\n");