class FieldAgent implements IOFogModule {

    private void changeVersion() {
        LoggingService.logInfo(MODULE_NAME, "Starting change version action");

        if (notProvisioned() || !isControllerConnected(false)) {
            return;
        }

        try {
            JsonObject result = orchestrator.request("version", RequestType.GET, null, null);
            VersionHandler.changeVersion(result);

        } catch (CertificateException | SSLHandshakeException e) {
            verificationFailed(e);
            LoggingService.logError(MODULE_NAME, "Unable to get version command due to broken certificate",
            		new AgentSystemException(e.getMessage(), e));
        } catch (Exception e) {
            LoggingService.logError(MODULE_NAME, "Unable to get version command",
            		new AgentSystemException(e.getMessage(), e));
        }
        LoggingService.logInfo(MODULE_NAME, "Finished change version operation, received from ioFog controller");
    }

    private  FieldAgent();

}