protected boolean assertInitialized(Context context, SocializeListener listener) {
    if (asserter != null) {
      return asserter.assertInitialized(context, this, listener);
    }

    if (!isInitialized()) {
      if (listener != null) {
        if (logger != null && logger.isInitialized()) {
          listener.onError(
              new SocializeException(logger.getMessage(SocializeLogger.NOT_INITIALIZED)));
        } else {
          listener.onError(new SocializeException("Not initialized"));
        }
      }
      if (logger != null) {
        if (logger.isInitialized()) {
          logger.error(SocializeLogger.NOT_INITIALIZED);
        } else {
          logger.error("Socialize Not initialized!");
        }
      }
    }

    return isInitialized();
  }
  protected boolean assertAuthenticated(SocializeListener listener) {
    if (asserter != null) {
      return asserter.assertAuthenticated(this, session, listener);
    }

    if (session != null) {
      return true;
    } else {
      if (listener != null) {
        if (logger != null && logger.isInitialized()) {
          listener.onError(
              new SocializeException(logger.getMessage(SocializeLogger.NOT_AUTHENTICATED)));
        } else {
          listener.onError(new SocializeException("Not authenticated"));
        }
      }
      if (logger != null && logger.isInitialized()) {
        logger.error(SocializeLogger.NOT_AUTHENTICATED);
      } else {
        System.err.println("Not authenticated");
      }
    }

    return false;
  }