src/main/java/org/jamppa/component/utils/XMPPUtils.java
public static IQ error(IQ iq, String errorMessage, Logger logger) {
        logger.error(errorMessage);
        return error(iq, errorMessage);
    }
public static IQ error(IQ iq, String errorMessage, Logger logger) {
        logger.error(errorMessage);
        return error(iq, errorMessage);
    }
Logs the error and returns an IQ error response

@param iq
@param errorMessage
@param logger
@return