* Registers a remote endpoint
*
* @param remote
*/
public void registerRemoteEndpoint(InternalEndpoint remote) {
InternalEndpoint endpoint = (InternalEndpoint) internalEndpoints.get(getKey(remote));
// Create endpoint if not already existing
if (endpoint == null) {
endpoint = new InternalEndpoint(null, remote.getEndpointName(), remote.getServiceName());
internalEndpoints.put(getKey(endpoint), endpoint);
}
// Add remote endpoint
endpoint.addRemoteEndpoint(remote);
fireEvent(remote, EndpointEvent.REMOTE_ENDPOINT_REGISTERED);
}