def getAnnotation(key, default):
    """Given a key, get annotation object from module.

        The annotation key is a dotted name. All dots are replaced
        with underscores and the result is pre and post-fixed by
        double underscore. For instance 'grok.name' will be translated
        to '__grok_name__'.

        Uses default if no such annotation found.
        """
