def clsinit(cls):
    """ Initializes template information (i.e. attributes and traces)
    on classes derived from the ResourceManager class.

    It is used as a decorator in the class declaration as follows:

        @clsinit
        class MyResourceManager(ResourceManager):
        
            ...

     """
    cls._clsinit()
    return cls
