add set_attrs_by_handler for Entity