static { try { msId = getUuid(); // TODO: get code version from MANIFEST file codeVersion = "0.1.0"; File globalPropertiesFile = PathUtil.findFileOnClassPath("zstack.properties", true); FileInputStream in = new FileInputStream(globalPropertiesFile); System.getProperties().load(in); linkGlobalProperty(); prepareDefaultDbProperties(); writePidFile(); locale = new Locale(CoreGlobalProperty.LOCALE); } catch (Throwable e) { logger.warn(String.format("unhandled exception when in Platform's static block, %s", e.getMessage()), e); throw new RuntimeException(e); } }