protected void prepareDetectorOptions ( Map < String , String > pConfig ) { StringBuffer detectorOpts = new StringBuffer ( "{" ) ; if ( pConfig . containsKey ( "bootAmx" ) && Boolean . parseBoolean ( pConfig . get ( "bootAmx" ) ) ) { detectorOpts . append ( "\"glassfish\" : { \"bootAmx\" : true }" ) ; } if ( detectorOpts . length ( ) > 1 ) { detectorOpts . append ( "}" ) ; pConfig . put ( ConfigKey . DETECTOR_OPTIONS . getKeyValue ( ) , detectorOpts . toString ( ) ) ; } }
Add detector specific options if given on the command line