private void handleJsonReportResponse(final ClientRequestReport report,final ClientRequestReportListener reportListener){
  if (reportListener == null) {
    LOGGER.debug("handleJsonReportResponse(): Received a report, but no reportListener is registered. Ignoring..");
    return;
  }
  if (report.isErrorReport()) {
    LOGGER.debug("handleJsonReportResponse(): Received an error report. Informing listener.");
    reportListener.onErrorReportReceived((ClientRequestErrorReport)report);
    throw new RuntimeException("Error report received from server on client request: " + report.getErrorMessage());
  }
 else   if (report.isProgressReport()) {
    LOGGER.debug("handleJsonReportResponse(): Received a progress report. Informing listener.");
    reportListener.onProgressReportReceived((ClientRequestProgressReport)report);
  }
 else   LOGGER.warn("handleJsonReportResponse(): Received a report of unknown type. Ignoring..");
}

private void handleJsonReportResponse ( final ClientRequestReport report , final ClientRequestReportListener reportListener ) { if ( reportListener == null ) { LOGGER . debug ( "handleJsonReportResponse(): Received a report, but no reportListener is registered. Ignoring.." ) ; return ; } if ( report . isErrorReport ( ) ) { LOGGER . debug ( "handleJsonReportResponse(): Received an error report. Informing listener." ) ; reportListener . onErrorReportReceived ( ( ClientRequestErrorReport ) report ) ; throw new RuntimeException ( "Error report received from server on client request: " + report . getErrorMessage ( ) ) ; } else if ( report . isProgressReport ( ) ) { LOGGER . debug ( "handleJsonReportResponse(): Received a progress report. Informing listener." ) ; reportListener . onProgressReportReceived ( ( ClientRequestProgressReport ) report ) ; } else LOGGER . warn ( "handleJsonReportResponse(): Received a report of unknown type. Ignoring.." ) ; }
informs the listener in case a report is received .
