protected JSONObject getDetectorOptions ( Configuration pConfig , LogHandler pLogHandler ) { String options = pConfig . get ( ConfigKey . DETECTOR_OPTIONS ) ; try { if ( options != null ) { JSONObject opts = ( JSONObject ) new JSONParser ( ) . parse ( options ) ; return ( JSONObject ) opts . get ( getProduct ( ) ) ; } return null ; } catch ( ParseException e ) { pLogHandler . error ( "Could not parse detector options '" + options + "' as JSON object: " + e , e ) ; } return null ; }
Get the optional options used for detectors . This should be a JSON string specifying all options for all detectors . Keys are the name of the detector s product the values are JSON object containing specific parameters for this agent . E . g .