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;
}

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 ; }
parses payload argument from command line and returns the json .
