private static void setIfNone(Attributes mainAttributes, Attributes.Name attrName, String value) {
    if (mainAttributes.getValue(attrName) == null) {
      mainAttributes.put(attrName, value);
    }
  }
private static void setIfNone(Attributes mainAttributes, Attributes.Name attrName, String value)