code: public String normalizeAttribute(String name) {
          name = name.trim();
          if (!preserveAttributeCase)
              name = lowerCase(name);
          return name;
      }
docs: Normalizes an attribute according to the case preservation setting.