private Map<String, String> lookupSystemProperties() {
        Map<String,String> ret = new HashMap<String, String>();
        Enumeration propEnum = System.getProperties().propertyNames();
        while (propEnum.hasMoreElements()) {
            String prop = (String) propEnum.nextElement();
            if (prop.startsWith("jolokia.")) {
                String key = prop.substring("jolokia.".length());
                ret.put(key,System.getProperty(prop));
            }
        }
        return ret;
    }
private Map < String , String > lookupSystemProperties ( ) { Map < String , String > ret = new HashMap < String , String > ( ) ; Enumeration propEnum = System . getProperties ( ) . propertyNames ( ) ; while ( propEnum . hasMoreElements ( ) ) { String prop = ( String ) propEnum . nextElement ( ) ; if ( prop . startsWith ( "jolokia." ) ) { String key = prop . substring ( "jolokia." . length ( ) ) ; ret . put ( key , System . getProperty ( prop ) ) ; } } return ret ; }
Lookup system properties for all configurations possible