public GatewayEndpointSummaryBean getGatewayEndpoint(String gatewayId)  throws GatewayNotFoundException {
        // No permission check is needed
        try {
            GatewayBean gateway = storage.getGateway(gatewayId);
            if (gateway == null) {
                throw ExceptionFactory.gatewayNotFoundException(gatewayId);
            } else {
                LOGGER.debug(String.format("Got endpoint summary: %s", gateway)); //$NON-NLS-1$
            }
            IGatewayLink link = gatewayLinkFactory.create(gateway);
            GatewayEndpoint endpoint = link.getGatewayEndpoint();
            GatewayEndpointSummaryBean gatewayEndpoint = new GatewayEndpointSummaryBean();
            gatewayEndpoint.setEndpoint(endpoint.getEndpoint());
            return gatewayEndpoint;
        } catch (AbstractRestException e) {
            throw e;
        } catch (Exception e) {
            throw new SystemErrorException(e);
        }
    }
@see IGatewayResource#getGatewayEndpoint(java.lang.String)
manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/GatewayResourceImpl.java