@CheckForNull
    public ServiceMode getMode() {
        if (replicated != null) {
            return ServiceMode.REPLICATED;
        }
        if (global != null) {
            return ServiceMode.GLOBAL;
        }

        return null;
    }
@ CheckForNull public ServiceMode getMode ( ) { if ( replicated != null ) { return ServiceMode . REPLICATED ; } if ( global != null ) { return ServiceMode . GLOBAL ; } return null ; }
@since 1.24