createEndpoint

Creates the Endpoint implementation for the given XML endpoint configuration. If the endpoint
configuration is an inline one, it should be an anonymous endpoint. If it is defined as an
immediate child element of the definitions tag it should have a name, which is used as the
key in local registry.