private Map < QueryParameter , String > createMap ( ) { final Map < QueryParameter , String > params = new HashMap < QueryParameter , String > ( ) ; final Properties props = System . getProperties ( ) ; for ( final Map . Entry < Object , Object > set : props . entrySet ( ) ) { final String key = set . getKey ( ) . toString ( ) ; final String up = key . replace ( "org.jaxrx.parameter." , "" ) ; if ( key . equals ( up ) ) continue ; try { params . put ( QueryParameter . valueOf ( up . toUpperCase ( ) ) , set . getValue ( ) . toString ( ) ) ; } catch ( final IllegalArgumentException ex ) { /* ignore */ } } return params ; }
Returns a fresh parameter map . This map contains all parameters as defaults which have been specified by the user via system properties with the pattern org . jaxrx . parameter . KEY as key .