* @param link
* @throws JBIException
*/
public void registerEndpointConnection(QName fromSvc, String fromEp,
QName toSvc, String toEp, String link) throws JBIException {
LinkedEndpoint ep = new LinkedEndpoint(fromSvc, fromEp, toSvc, toEp, link);
if (linkedEndpoints.get(getKey(ep)) != null) {
throw new JBIException("An endpoint connection for service " + ep.getServiceName() + " and name "
+ ep.getEndpointName() + " is already registered");
}
linkedEndpoints.put(getKey(ep), ep);
registerEndpoint(ep);
fireEvent(ep, EndpointEvent.LINKED_ENDPOINT_REGISTERED);
}