code: @Override
      public String getName() {
          CommonProfile profile = this.getProfile();
          if(null == principalNameAttribute) {
              return profile.getId();
          }
          Object attrValue = profile.getAttribute(principalNameAttribute);
          return (null == attrValue) ? null : String.valueOf(attrValue);
      }
docs: Returns a name for the principal based upon one of the attributes
  of the main CommonProfile.  The attribute name used to query the CommonProfile
  is specified in the constructor.
  
  @return a name for the Principal or null if the attribute is not populated.