code: private static IQ respondError(AdHocCommandData response, StanzaError.Builder error) {
          response.setType(IQ.Type.error);
          response.setError(error);
          return response;
      }
docs: Responds an error with an specific error.
  
  @param response the response to send.
  @param error the error to send.
  @throws NotConnectedException