def process_contexts(server, contexts, p_ctx, error=None):
    """Method to be called in the auxiliary context."""
    for ctx in contexts:
        ctx.descriptor.aux.initialize_context(ctx, p_ctx, error)
        if error is None or ctx.descriptor.aux.process_exceptions:
            ctx.descriptor.aux.process_context(server, ctx)
