private void checkKey(String newKey){
  boolean isRefreshIdents=false;
  if (null == registrationIdKey) {
    registrationIdKey=newKey;
  }
 else {
    isRefreshIdents=!Objects.equals(registrationIdKey,newKey);
    registrationIdKey=newKey;
  }
  if (isRefreshIdents) {
    cachedDataService.triggerRefreshIdents();
  }
}

private void checkKey ( String newKey ) { boolean isRefreshIdents = false ; if ( null == registrationIdKey ) { registrationIdKey = newKey ; } else { isRefreshIdents = ! Objects . equals ( registrationIdKey , newKey ) ; registrationIdKey = newKey ; } if ( isRefreshIdents ) { cachedDataService . triggerRefreshIdents ( ) ; } }
check if key has changed and fire the refresh idents if necessary .
