code: @SuppressWarnings({"unchecked"})
      public void importItem(Object item)
          {
          try
              {
              XMLStreamWriter     writer = m_xmlWriter;
              Map<String, String> nsMap  = m_namespaceMap;
  
              boolean hasDecendants = !m_elements.isEmpty();
              if (hasDecendants)
                  {
                  writer.writeStartElement(m_itemElementName);
                  }
              else
                  {
                  writer.writeEmptyElement(m_itemElementName);
                  }
              Map<String, Object> convertedItem = (Map<String, Object>) item;
              for (Property property : m_attributes)
                  {
                  String prefix = property.getNamespacePrefix();
                  if (prefix == null)
                      {
                      prefix = "";
                      }
                  String localName = property.getLocalName();
                  String namespace = nsMap.get(prefix);
                  if (namespace == null)
                      {
                      namespace = "";
                      }
                  writer.writeAttribute(prefix,
                                        namespace,
                                        localName,
                                        convertedItem.get(localName).toString());
                  }
              for (Property property : m_elements)
                  {
                  String prefix = property.getNamespacePrefix() == null
                                  ? ""
                                  : property.getNamespacePrefix();
                  String localName = property.getLocalName();
                  String namespace = nsMap.get(prefix) == null
                                     ? ""
                                     : nsMap.get(prefix);
                  writer.writeStartElement(prefix, localName, namespace);
                  writer.writeCharacters(convertedItem.get(localName).toString());
                  writer.writeEndElement();
                  }
              if (hasDecendants)
                  {
                  writer.writeEndElement();
                  }
              }
          catch (XMLStreamException e)
              {
              throw new RuntimeException(e);
              }
          }
docs: {@inheritDoc}