public static Type getBoxedType(final Type type) {
        switch (type.getSort()) {
        case Type.BYTE:
            return Type.getType(Byte.class);
        case Type.BOOLEAN:
            return Type.getType(Boolean.class);
        case Type.SHORT:
            return Type.getType(Short.class);
        case Type.CHAR:
            return Type.getType(Character.class);
        case Type.INT:
            return Type.getType(Integer.class);
        case Type.FLOAT:
            return Type.getType(Float.class);
        case Type.LONG:
            return Type.getType(Long.class);
        case Type.DOUBLE:
            return Type.getType(Double.class);
        default :
            return type;
        }
    }