private Record parseResponse(String response) throws StageException {
  Record record=null;
  try (DataParser parser=parserFactory.getParser("",response)){
    record=parser.parse();
    if (conf.dataFormat == DataFormat.TEXT) {
      record.set(record.get("/text"));
    }
  }
 catch (  IOException|DataParserException e) {
    errorRecordHandler.onError(Errors.HTTP_00,e.toString(),e);
  }
  return record;
}

private Record parseResponse ( String response ) throws StageException { Record record = null ; try ( DataParser parser = parserFactory . getParser ( "" , response ) ) { record = parser . parse ( ) ; if ( conf . dataFormat == DataFormat . TEXT ) { record . set ( record . get ( "/text" ) ) ; } } catch ( IOException | DataParserException e ) { errorRecordHandler . onError ( Errors . HTTP_00 , e . toString ( ) , e ) ; } return record ; }
parses the http response text from a request into sdc records
