class Orchestrator {

    public void update() {
    	logDebug(MODULE_NAME, "Start updates local variables when changes applied");
        iofogUuid = Configuration.getIofogUuid();
        iofogAccessToken = Configuration.getAccessToken();
        controllerUrl = Configuration.getControllerUrl();
        // disable certificates for dev mode
        boolean secure = true;
        if (controllerUrl.toLowerCase().startsWith("https")) {
            try (FileInputStream fileInputStream = new FileInputStream(Configuration.getControllerCert())) {
                controllerCert = getCert(fileInputStream);
            } catch (IOException e) {
                controllerCert = null;
            }
        } else {
            controllerCert = null;
            secure = false;
        }
        try {
            initialize(secure);
        } catch (AgentSystemException exp) {
        	logError(MODULE_NAME,"Error while updating local variables when changes applied", 
            		new AgentUserException(exp.getMessage(), exp));
        } catch (Exception exp) {
            logError(MODULE_NAME,"Error while updating local variables when changes applied", 
            		new AgentUserException(exp.getMessage(), exp));
        }
        logDebug(MODULE_NAME, "Finished updates local variables when changes applied");
    }

    public  Orchestrator();

}