docs: private void copyBodyToClient(HttpURLConnection pRemoteConnection, HttpServletResponse pResponse) throws IOException {
          InputStream fromRemote = null;
          OutputStream toClient = null;
  
          try {
              // Get either input or error stream
              try {
                  fromRemote = pRemoteConnection.getInputStream();
              }
              catch (IOException e) {
                  // If exception, use errorStream instead
                  fromRemote = pRemoteConnection.getErrorStream();
              }
  
              // I guess the stream might be null if there is no response other
              // than headers (Continue, No Content, etc).
              if (fromRemote != null) {
                  toClient = pResponse.getOutputStream();
                  FileUtil.copy(fromRemote, toClient);
              }
          }
          finally {
              if (fromRemote != null) {
                  try {
                      fromRemote.close();
                  }
                  catch (IOException e) {
                      log("Stream from remote could not be closed.", e);
                  }
              }
              if (toClient != null) {
                  try {
                      toClient.close();
                  }
                  catch (IOException e) {
                      log("Stream to client could not be closed.", e);
                  }
              }
          }
      }