@classmethod
def get_namespace_prefix(cls, interface):
    """Returns the namespace prefix for the given interface. The
        get_namespace_prefix of the interface class generates a prefix if none
        is defined.
        """
    ns = cls.get_namespace()
    retval = interface.get_namespace_prefix(ns)
    return retval
