private BxLine parseLineElement(Element lineE) { BxLine line = new BxLine(); if (!(getChildren("LineCorners", lineE).isEmpty())) { line.setBounds(parseElementContainingVertexes(getChildren("LineCorners", lineE).get(0))); } List<Element> e = getChildren("Word", lineE); for (Element we : e) { BxWord wo = parseWordElement(we); line.addWord(wo); } return line; }