public static Categories parse(int code) {
        switch (code) {
            case 1:
                return SHOES;
            case 2:
                return SHIRTS;
            case 3:
                return CAPS;
            case 4:
                return PANTS;
        }
        return null;
    }