code: private void preDelete(UserProfile userProfile, boolean broadcast) throws Exception
     {
        for (UserProfileEventListener listener : listeners)
        {
           listener.preDelete(userProfile);
        }
     }
docs: Notifying listeners before profile deletion.
  
  @param userProfile
  the user profile which is used in delete operation
  @throws Exception
  if any listener failed to handle the event