class UserArchiveQueryHandler implements QueryHandler {

    @Override
    public List<Stanza> handle(Query query, ServerRuntimeContext serverRuntimeContext, SessionContext sessionContext) {
        try {
            return doHandle(query, serverRuntimeContext, sessionContext);
        } catch (XMLSemanticError xmlSemanticError) {
            Stanza internalServerError = ServerErrorResponses.getStanzaError(StanzaErrorCondition.INTERNAL_SERVER_ERROR,
                    query.iqStanza(), StanzaErrorType.CANCEL, null, null, null);
            return Collections.singletonList(internalServerError);
        }
    }

}