public static IClass getPrimitiveWrapAClass(IClass type) {
    	ClassHolder ch = type.getClassHolder();
        if (type.equals(ch.getType(boolean.class))) {
            return ch.getType(Boolean.class);
        } else if (type.equals(ch.getType(byte.class))) {
            return ch.getType(Byte.class);
        } else if (type.equals(ch.getType(short.class))) {
            return ch.getType(Short.class);
        } else if (type.equals(ch.getType(char.class))) {
            return ch.getType(Character.class);
        } else if (type.equals(ch.getType(int.class))) {
            return ch.getType(Integer.class);
        } else if (type.equals(ch.getType(long.class))) {
            return ch.getType(Long.class);
        } else if (type.equals(ch.getType(float.class))) {
            return ch.getType(Float.class);
        } else if (type.equals(ch.getType(double.class))) {
            return ch.getType(Double.class);
        }
        return type;
    }