class TrackingInfoUtils {

    public static JsonObject getConfigUpdateInfo(String option, String newValue) {
        LoggingService.logInfo(MODULE_NAME, "Start getting config update information");
        JsonObject info = null;
        if (option != null && newValue != null){
            info = Json.createObjectBuilder()
                    .add(option, newValue)
                    .build();
        } else {
            LoggingService.logError(MODULE_NAME, "can't update config info : option or value must not be null",
                    new AgentSystemException("can't update config info : option or value must not be null"));
            info = Json.createObjectBuilder()
                    .add("error", "can't update config info : option or value must not be null")
                    .build();
        }
        LoggingService.logInfo(MODULE_NAME, "Finished getting config update information");
        return info;
    }

}