code: @Override
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
      
      Endpoint endpoint = (Endpoint) xmlObject;
  
      if (endpoint.getEndpointType() != null) {
        domElement.setAttributeNS(null, Endpoint.ENDPOINT_TYPE_ATTR_NAME, endpoint.getEndpointType());
      }
      if (endpoint.getEntityID() != null) {
        domElement.setAttributeNS(null, Endpoint.ENTITY_ID_ATTR_NAME, endpoint.getEntityID());
      }
      this.marshallUnknownAttributes(endpoint, domElement);    
    }
docs: {@inheritDoc}