code: public static HttpMockServer startMockApiServer(@Nonnull ConfigReader configReader,
              @Nonnull NetworkType simulatedNetworkType) {
          try {
              String configJson = new String(readInitialData(configReader.getMainConfigFile()));
              JSONObject jsonObj = configJson.isEmpty() ? new JSONObject() : new JSONObject(configJson);
              sMockServer = new HttpMockServer(jsonObj, configReader, simulatedNetworkType);
              return sMockServer;
          } catch (IOException e) {
              LOGGER.log(Level.SEVERE, "MockServer error:", e);
          } catch (JSONException e) {
              LOGGER.log(Level.SEVERE, "MockServer error:", e);
          }
          return null;
      }
docs: Starts mock server and keeps reference to it.
  
  @param configReader wrapper for platform specific bits
  @param simulatedNetworkType delay time before response is sent.