Element entity = (Element)itr.next();
sb.append("\t\t<session>\n");
sb.append("\t\t\t<ejb-name>").append(entity.elementText("ejb-name")).append("</ejb-name>\n");
if (entity.elementText("display-name").endsWith("LocalManagerEJB")) {
sb.append("\t\t\t<bean-local-home-name>ejb/liferay/").append(entity.elementText("display-name")).append("Home</bean-local-home-name>\n");
}
else {
sb.append("\t\t\t<bean-home-name>").append(entity.elementText("ejb-name")).append("</bean-home-name>\n");
}