code: public static Attributes from(Map<String, String> stringMap)
      {
          if (stringMap == null || stringMap.size() == 0) return NONE;
  
          Attributes result = new Attributes();
  
          for (Map.Entry<String, String> entry : stringMap.entrySet())
          {
              result.attributes.put(Tag.from(entry.getKey(), false), Value.from(entry.getValue()));
          }
  
          return result;
      }
docs: Creates an <code>Attributes</code> object converting the given string map.
  The keys and values are not escaped.
  
  @param stringMap The string map containing the attributes convert
  @return a new Attributes instance obtained converting the given string map
  @throws ServiceLocationException If the conversion fails