public static Workload forPercent(final int percent) {
        if (percent==0) {
            return NONE;
        } else if (percent==25) {
            return QUARTER;
        } else if (percent==50) {
            return HALF;
        } else if (percent==75) {
            return THREEQUARTER;
        } else if (percent==100) {
            return FULL;
        }
        throw new IllegalArgumentException("Value \"" + percent + "\" does not correspond to any percent");
    }