void (final Element element, final LwComponent component) { final Element constraintsElement = LwXmlReader.getRequiredChild(element, "constraints"); final Element splitterChild = LwXmlReader.getRequiredChild(constraintsElement, "splitpane"); final String position = LwXmlReader.getRequiredString(splitterChild, "position"); if ("left".equals(position)) { component.setCustomLayoutConstraints(POSITION_LEFT); } else if ("right".equals(position)) { component.setCustomLayoutConstraints(POSITION_RIGHT); } else { throw new UnexpectedFormElementException("unexpected position: " + position); } }