@classmethod
def register_directory_class(cls, kls):
    """
        Convenience method for setting current class directory_class property.

        :param kls: class to set
        :type kls: type
        :returns: given class (enabling using this as decorator)
        :rtype: type
        """
    cls.directory_class = kls
    return kls
