class QueryConfigurationServiceImpl implements QueryConfigurationService {

  @Override
  public boolean init(Cache cache) {
    if (cache == null) {
      throw new IllegalArgumentException(NULL_CACHE_ERROR_MESSAGE);
    }

    if (System.getProperty(ALLOW_UNTRUSTED_METHOD_INVOCATION_SYSTEM_PROPERTY) != null) {
      logger.warn(DEPRECATION_WARNING);
    }

    if (isSecurityDisabled((InternalCache) cache) || ALLOW_UNTRUSTED_METHOD_INVOCATION) {
      this.authorizer = NO_OP_AUTHORIZER;
    } else {
      this.authorizer = new RestrictedMethodAuthorizer(cache);
    }

    return true;
  }

  public  QueryConfigurationServiceImpl();

}