code: public void setProfile(OperaProfile profile) {
      options.get(PROFILE).setValue(PROFILE.sanitize(profile));
      supportsPd = true;
    }
docs: Sets the profile to use as an Opera profile represented as an object.
  
  @param profile the Opera profile to use
  @throws NullPointerException if argument is null