Here you can find the source of hasEnv(String key, String value)
public static boolean hasEnv(String key, String value)
//package com.java2s; //License from project: Apache License import java.util.prefs.Preferences; public class Main { public static boolean hasEnv(String key, String value) { if (value == null || "".equals(value.trim())) { return false; }/* www. j a v a 2 s.com*/ Preferences preferences = Preferences.systemRoot().node( "/ice_water"); return value.equalsIgnoreCase(preferences.get(key, "_null_mode_")); } }