public void deactivateEndpoint(ServiceEndpoint endpoint) throws JBIException {
this.endpoints.unregisterInternalEndpoint(endpoint);
}
public void registerExternalEndpoint(ServiceEndpoint externalEndpoint) throws JBIException {
ExternalEndpointImpl se = new ExternalEndpointImpl();
se.setEndpoint(externalEndpoint);
se.setComponent(this.component.getName());
se.setActive(true);
this.endpoints.registerExternalEndpoint(se);
}