if (getDescriptor().getInboundEndpoint() != null) { endpoints.add(getDescriptor().getInboundEndpoint()); }
    protected List getIncomingEndpoints()    {        List endpoints = new ArrayList();        // Add inbound endpoints        endpoints.addAll(getDescriptor().getInboundRouter().getEndpoints());        // Add the (deprecated) single inbound endpoint.        if (getDescriptor().getInboundEndpoint() != null)        {            endpoints.add(getDescriptor().getInboundEndpoint());        }        // Add response endpoints        if (getDescriptor().getResponseRouter() != null            && getDescriptor().getResponseRouter().getEndpoints() != null)        {            endpoints.addAll(getDescriptor().getResponseRouter().getEndpoints());        }        return endpoints;    }