public static synchronized void init(final Properties properties) throws Exception { if (initialized) return; system = new SystemInstance(properties); readUserSystemProperties(); readSystemProperties(); readSystemProperties(get().currentProfile()); System.getProperties() .putAll(system.getProperties()); // if the user read System.getProperties() instead of our // properties, used in bval-tomee tck for instance initialized = true; get().setProperty("openejb.profile.custom", Boolean.toString(!get().isDefaultProfile())); }
private static void readSystemProperties() { readSystemProperties(null); }