private GatewaySummaryBean getSingularGateway() throws StorageException {
        List<GatewaySummaryBean> gateways = query.listGateways();
        if (gateways != null && gateways.size() == 1) {
            return gateways.get(0);
        } else {
            return null;
        }
    }
@return a {@link GatewayBean} iff there is a single configured gateway in the system
@throws StorageException
manager/api/rest-impl/src/main/java/io/apiman/manager/api/service/ApiService.java