Insets (final Element element) { final int top = getRequiredInt(element, UIFormXmlConstants.ATTRIBUTE_TOP); final int left = getRequiredInt(element, UIFormXmlConstants.ATTRIBUTE_LEFT); final int bottom = getRequiredInt(element, UIFormXmlConstants.ATTRIBUTE_BOTTOM); final int right = getRequiredInt(element, UIFormXmlConstants.ATTRIBUTE_RIGHT); return new Insets(top, left, bottom, right); }