     xml.e('xsdVersion').t '0.1'
     xml
 
-  /**
-   * Adds inventory data to given xml instance.
-   * @param {xml} xml The xml instance to be used.
-   * @param {inventory} entry The inventory data to be used in the template.
-   * @return {xml} The xml with inventory data.
-   */
+  ###
+  Adds inventory data to given xml instance.
+  @param {xml} xml The xml instance to be used.
+  @param {inventory} entry The inventory data to be used in the template.
+  @return {xml} The xml with inventory data.
+  ###
   createXmlEntry: (xml, entry) ->
     xe = xml.e('entry')
     @add xe, entry, 'id'

        deffered.resolve @output
    deffered.promise

  /**
   * Adds an element to given xml instance.
   * @param {xml} xml The xml instance to be used.
   * @param {element} elem The xml element to be added.
   * @param {string} attr The name of the element.
   * @param {string} xAttr ???
   * @return {xml} The xml with added element.
   */
  add: (xml, elem, attr, xAttr) ->
    xAttr = attr unless xAttr
    value = elem[attr]

    @rest = @inventoryUpdater.rest
    @

  ###
  Fetch inventory items from Sphere and export xml files for all inventory items.
  @param {string} msg The message to process.
  @param {hash} cfg The component's configuration.
  @param {function} next The callback function to be invoked when the component finished its work.
  @param {string} snapshot The optional snapshot parameter which is used by a component for deduplication.
  @return The result of the callback.
  ###
  elasticio: (msg, cfg, next, snapshot) ->
    @returnResult false, 'Not yet implemented', next

  ###
  Fetch inventory items from Sphere and create xml for all inventory items.
  @param {function} callback The callback function to be invoked when the method finished its work.
  @return The result of the callback.
  ###
  run: (callback) ->
    @inventoryUpdater.allInventoryEntries(@rest).then (allInventoryEntries) =>
      xml = @createXml()
