'Adjust the kwargs to be passed to the generated class.
Any kwargs that match :fun:`XmlImportData.__init__` will be passed
through. Any other unknown `kwargs` will be treated as XML attributes
:param tag: xml tag for the generated :class:`Element` node
:param text: (Optional) specifies the text of the generated :class:`Element`.
:param policy: (Optional) specifies data for the policy json file for this node
:type policy: dict
:param attribs: (Optional) specify attributes for the XML node
:type attribs: dict'

@classmethod
def _adjust_kwargs(cls, **kwargs):

    tag = kwargs.pop('tag', 'unknown')
    kwargs['policy'] = {'{tag}/{url_name}'.format(tag=tag, url_name=kwargs['url_name']): kwargs['policy']}
    kwargs['xml_node'].text = kwargs.pop('text', None)
    kwargs['xml_node'].attrib.update(kwargs.pop('attribs', {}))
    inline_xml = kwargs.pop('inline_xml')
    if inline_xml:
        kwargs['xml_node'].set('not_a_pointer', 'true')
    for key in kwargs.keys():
        if (key not in XML_IMPORT_ARGS):
            kwargs['xml_node'].set(key, kwargs.pop(key))
    if (not inline_xml):
        kwargs['xml_node'].write(kwargs['filesystem'].open('{}/{}.xml'.format(kwargs['tag'], kwargs['url_name'])), encoding='utf-8')
    return kwargs
