code: private void preSave(UserProfile userProfile, boolean isNew) throws Exception
     {
        for (UserProfileEventListener listener : listeners)
        {
           listener.preSave(userProfile, isNew);
        }
     }
docs: Notifying listeners before profile creation.
  
  @param userProfile
  the user profile which is used in save operation
  @param isNew
  true, if we have a deal with new profile, otherwise it is false
  which mean update operation is in progress
  @throws Exception
  if any listener failed to handle the event