/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { AttributeConsumingService service = (AttributeConsumingService) samlObject; if (attribute.getLocalName().equals(AttributeConsumingService.INDEX_ATTRIB_NAME)) { service.setIndex(Integer.valueOf(attribute.getValue())); } else if (attribute.getLocalName().equals(AttributeConsumingService.IS_DEFAULT_ATTRIB_NAME)) { service.setIsDefault(XSBooleanValue.valueOf(attribute.getValue())); } else { super.processAttribute(samlObject, attribute); } } }