class Sampling {

    public static Sampling valueOf(String samplerName) {
        if ("off".equalsIgnoreCase(samplerName)) return OFF;
        if ("on".equalsIgnoreCase(samplerName)) return ON;
        return null;
    }

}