code: public Gender getGender() {
          final Gender gender = (Gender) getAttribute(CommonProfileDefinition.GENDER);
          if (gender == null) {
              return Gender.UNSPECIFIED;
          } else {
              return gender;
          }
      }
docs: Return the gender of the user.
  
  @return the gender of the user