public static JavaVersion get(int majorVersion) {
        switch (majorVersion) {
        case 0x2D:
            return JDK1_1;
        case 0x2E:
            return JDK1_2;
        case 0x2F:
            return JDK1_3;
        case 0x30:
            return JDK1_4;
        case 0x31:
            return J2SE5_0;
        case 0x32:
            return J2SE6_0;
        case 0x33:
            return J2SE7_0;
        }

        throw new IllegalArgumentException();
    }