void (Document pomXml, Namespace pomNamespace) { Element rootElement = pomXml.getRootElement(); addLineBreaks(rootElement); Element buildElement = rootElement.getChild("build", pomNamespace); if (buildElement != null) { addLineBreaks(buildElement); } }