private static String getPUBURIAsString() {
        String pubUri = JanusConfig.getSystemProperty(JanusConfig.PUB_URI);
        if (pubUri == null || pubUri.isEmpty()) {
            InetAddress a = NetworkUtil.getPrimaryAddress();
            if (a == null) {
                a = NetworkUtil.getLoopbackAddress();
            }
            if (a != null) {
                pubUri = NetworkUtil.toURI(a, -1).toString();
                System.setProperty(JanusConfig.PUB_URI, pubUri);
            }
        }
        return pubUri;
    }
private static String getPUBURIAsString ( ) { String pubUri = JanusConfig . getSystemProperty ( JanusConfig . PUB_URI ) ; if ( pubUri == null || pubUri . isEmpty ( ) ) { InetAddress a = NetworkUtil . getPrimaryAddress ( ) ; if ( a == null ) { a = NetworkUtil . getLoopbackAddress ( ) ; } if ( a != null ) { pubUri = NetworkUtil . toURI ( a , - 1 ) . toString ( ) ; System . setProperty ( JanusConfig . PUB_URI , pubUri ) ; } } return pubUri ; }
Extract the current value of the PUB_URI from the system's property or form the platform default value.

@return the current PUB_URI