private void startRestAgentServer(InternalCache cache) {
    if (system.getConfig().getStartDevRestApi() && isServerNode()) {
      restAgent = new RestAgent(system.getConfig(), securityService);
      restAgent.start(cache);
    } else {
      restAgent = null;
    }
  }
Initialize any services provided as extensions to the cache using service loader.
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java