code: public void addListener(final ProfileListener profileListener) {
          if (profileListener != null) {
              com.comapi.ProfileListener foundationListener = new com.comapi.ProfileListener() {
                  @Override
                  public void onProfileUpdate(ProfileUpdateEvent event) {
                      profileListener.onProfileUpdate(event);
                  }
              };
              profileListeners.put(profileListener, foundationListener);
              client.addListener(foundationListener);
          }
      }
docs: Registers listener for changes in profile details.
  
  @param profileListener Listener for changes in in profile details.