public static void buildConfig(Configurator configurator, String pathToConfigFile) {
    try {
      configurator.setConfigFilePath(pathToConfigFile);
      configurator.buildConfig();
      configurator.setTimeStamp();
    } catch (FileNotFoundException e) {
      logger.fatal("Error [File Not Found]: '" + pathToConfigFile
          + "' either doesn't exist or is not a file.", e);
    } catch (JsonException | IllegalStateException e) {
      logger.fatal("Error [Config Parsing]: Unable to parse the provided configuration "
          + "file with the following error: " + e.getLocalizedMessage(), e);
    } catch (KiteNoKeyException e) {
      logger.fatal("Error [Config Parsing]: '" + e.getKey()
          + "' is not found in the configuration file or is null.", e);
    } catch (KiteBadValueException e) {
      logger.fatal("Error [Config Parsing]: '" + e.getKey()
          + "' has an inappropriate value in the configuration file.", e);
    } catch (KiteInsufficientValueException e) {
      logger.fatal("Error [Config Parsing]: " + e.getLocalizedMessage(), e);
    } catch (Exception e) {
      logger.fatal("FATAL Error: KITE has failed to start execution", e);
    }
  }
Builds the config.

@param configurator the configurator
@param pathToConfigFile the path to config file
KITE-Engine/src/main/java/org/webrtc/kite/Engine.java