def _register(self, name, AttrCls):
if not issubclass(AttrCls, StateAttr):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if len(name) > <NUM_LIT>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._fields[name] = AttrCls(self._owner, name)<EOL>
Register a new attribute to take care of with dump and load

           Arguments:
            | ``name``  --  the name to be used in the dump file
            | ``AttrCls``  --  an attr class describing the attribute