class MLEnvironmentFactory {

	public static synchronized void setDefault(MLEnvironment env) {
		if (map.containsKey(DEFAULT_ML_ENVIRONMENT_ID)) {
			throw new IllegalArgumentException("The default MLEnvironment should be set only once.");
		}

		map.put(DEFAULT_ML_ENVIRONMENT_ID, env);
	}

}