Element (String type, String fqName) { Element entryPoints = new Element("entry_points"); Element entryPoint = new Element("entry_point"); entryPoint.setAttribute("TYPE", type); entryPoint.setAttribute("FQNAME", fqName); entryPoints.addContent(entryPoint); return entryPoints; }