private GatewaySummaryBean getSingularGateway() throws StorageException {
        List<GatewaySummaryBean> gateways = query.listGateways();
        if (gateways != null && gateways.size() == 1) {
            return gateways.get(0);
        } else {
            return null;
        }
    }
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