def increment(method):
        """
        Static method used to increment the depth of a context belonging to 'method'

        :param function method: A method with a context

        :rtype: caliendo.hooks.Context
        :returns: The context instance for the method.
        """
        if not hasattr(method, '__context'):
            raise ContextException("Method does not have context!")
        ctxt = getattr(method, '__context')
        ctxt.enter()
        return ctxt
Static method used to increment the depth of a context belonging to 'method'

        :param function method: A method with a context

        :rtype: caliendo.hooks.Context
        :returns: The context instance for the method.