public void check(){
  if (sLogger.isActivated()) {
    sLogger.debug("Check presence service");
  }
  if (!mWatcherInfoSubscriber.isSubscribed()) {
    if (sLogger.isActivated()) {
      sLogger.debug("Subscribe manager not yet started for watcher-info");
    }
    if (mWatcherInfoSubscriber.subscribe()) {
      if (sLogger.isActivated()) {
        sLogger.debug("Subscribe manager is started with success for watcher-info");
      }
    }
 else {
      if (sLogger.isActivated()) {
        sLogger.debug("Subscribe manager can't be started for watcher-info");
      }
    }
  }
  if (!mPresenceSubscriber.isSubscribed()) {
    if (sLogger.isActivated()) {
      sLogger.debug("Subscribe manager not yet started for presence");
    }
    if (mPresenceSubscriber.subscribe()) {
      if (sLogger.isActivated()) {
        sLogger.debug("Subscribe manager is started with success for presence");
      }
    }
 else {
      if (sLogger.isActivated()) {
        sLogger.debug("Subscribe manager can't be started for presence");
      }
    }
  }
}

public void check ( ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Check presence service" ) ; } if ( ! mWatcherInfoSubscriber . isSubscribed ( ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Subscribe manager not yet started for watcher-info" ) ; } if ( mWatcherInfoSubscriber . subscribe ( ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Subscribe manager is started with success for watcher-info" ) ; } } else { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Subscribe manager can't be started for watcher-info" ) ; } } } if ( ! mPresenceSubscriber . isSubscribed ( ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Subscribe manager not yet started for presence" ) ; } if ( mPresenceSubscriber . subscribe ( ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Subscribe manager is started with success for presence" ) ; } } else { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Subscribe manager can't be started for presence" ) ; } } } }
check the ims service
