/**
  * @param iq
  * @param errorMessage
  * @param logger
  * @return
  */
 public static IQ error(IQ iq, String errorMessage, Exception e, Logger logger) {
   logger.error(errorMessage, e);
   return XMPPUtils.createErrorResponse(iq, errorMessage, Condition.bad_request, Type.modify);
 }
 /**
  * Logs the RSM page not found error and returns an IQ error response
  *
  * @param iq
  * @param errorMessage
  * @param logger
  * @return
  */
 public static IQ errorRSM(IQ iq, Logger logger) {
   String rsmMessage = "RSM: Page Not Found";
   logger.error(rsmMessage + " " + iq);
   return XMPPUtils.createErrorResponse(iq, rsmMessage, Condition.item_not_found, Type.cancel);
 }
 public static IQ error(IQ iq, String errorMessage) {
   return XMPPUtils.createErrorResponse(iq, errorMessage, Condition.bad_request, Type.modify);
 }