<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _new(self, name, **kwargs):
 """Create a new JSSObject with name and "keys". Generate a default XML template for this object, based on the class attribute "keys". Args: name: String name of the object to use as the object's name property. kwargs: Accepted keyword args can be viewed by checking the "data_keys" class attribute. Typically, they include all top-level keys, and non-duplicated keys used elsewhere. Values will be cast to string. (Int 10, bool False become string values "10" and "false"). Ignores kwargs that aren't in object's keys attribute. """

        # Name is required, so set it outside of the helper func.
        if self._name_path:
            parent = self
            for path_element in self._name_path.split("/"):
                self._set_xml_from_keys(parent, (path_element, None))
                parent = parent.find(path_element)

            parent.text = name
        else:
            ElementTree.SubElement(self, "name").text = name

        for item in self.data_keys.items():
            self._set_xml_from_keys(self, item, **kwargs)