code: private String getAttributeKeyValue(String key) {
      String prefix = key + '=';
      String attribute = getAttribute(prefix);
      return attribute != null ? attribute.substring(prefix.length()) : null;
    }
docs: Return the value for a specified key. Attributes are sequentially searched
  rather than use a map, because most attributes are not key-value pairs.