VM-Core/src/main/java/com/validation/manager/core/server/core/VMSettingServer.java
@SuppressWarnings("unchecked")
    public static VmSetting getSetting(String s) {
        PARAMETERS.clear();
        PARAMETERS.put("setting", s);
        result = namedQuery("VmSetting.findBySetting",
                PARAMETERS);
        if (result.isEmpty()) {
            return null;
        } else {
            return (VmSetting) result.get(0);
        }
    }
@SuppressWarnings("unchecked")
    public static VmSetting getSetting(String s) {
        PARAMETERS.clear();
        PARAMETERS.put("setting", s);
        result = namedQuery("VmSetting.findBySetting",
                PARAMETERS);
        if (result.isEmpty()) {
            return null;
        } else {
            return (VmSetting) result.get(0);
        }
    }
Get setting from database

@param s Setting name to retrieve
@return Setting with the specified name.