code: public Object getUserAttribute(String key, Object defaultValue)
      {
          Object attributeValue = this.userAttributes.get(key);
          if (attributeValue == null)
              attributeValue = defaultValue;
          return attributeValue;
      }
docs: Get a value from the user attributes map.
  
  @param key
  name of the attribute
  @param defaultValue
  a default value to return if no value is found.
  @return the attribute value