docs: private void genAttributes(final Element ent, final ResourceXMLParser.Entity entity) {
          if (null == entity.getProperties() ) {
              return;
          }
          for (final String key:entity.getProperties().stringPropertyNames()){
              if (!ResourceXMLConstants.allPropSet.contains(key)) {
                  //test attribute name is a valid XML attribute name
                  if (isValidName(key)) {
                      ent.addAttribute(key, entity.getProperties().getProperty(key));
                  } else {
                      //add sub element
                      final Element atelm = ent.addElement(ATTRIBUTE_TAG);
                      atelm.addAttribute(ATTRIBUTE_NAME_ATTR, key);
                      atelm.addAttribute(ATTRIBUTE_VALUE_ATTR, entity.getProperties().getProperty(key));
                  }
              }
          }
  
      }