private static boolean isPrimitiveOrWrapperType(Class<?> type) {
        return type.isPrimitive() || PrimitiveUtils.isWrapperType(type);
    }
{@code CollQuerySerializer} is a {@link Serializer} implementation for the Java language

@author tiwe
querydsl-collections/src/main/java/com/querydsl/collections/CollQuerySerializer.java