question: protected String parsePayload ( String payload ) { String json = null ; if ( payload != null ) { try { json = ( payload . indexOf ( "{" ) == - 1 ) ? new String ( Files . readAllBytes ( Paths . get ( payload ) ) ) : payload ; } catch ( IOException e ) { log . fatal ( "Error in parsing payload: " + payload , e ) ; System . exit ( 1 ) ; } } return json ; }
target:  Parses payload argument from command line and returns the JSON.