@Override public void onProfileResponse(ProfileSyncResponse response) throws Exception { if (response.getResponseStatus() == SyncResponseStatus.RESYNC) { clientState.setIfNeedProfileResync(true); sync(); } else if (clientState != null && !clientState.isRegistered()) { clientState.setRegistered(true); } LOG.info("Processed profile response"); }