code: @Override
    protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
  
      Endpoint endpoint = (Endpoint) samlObject;
  
      if (attribute.getLocalName().equals(Endpoint.ENDPOINT_TYPE_ATTR_NAME)) {
        endpoint.setEndpointType(attribute.getValue());
      }
      else if (attribute.getLocalName().equals(Endpoint.ENTITY_ID_ATTR_NAME)) {
        endpoint.setEntityID(attribute.getValue());
      }
      else {
        this.processUnknownAttribute(endpoint, attribute);
      }
    }
docs: {@inheritDoc}