private boolean isCollection(Type type) {
        try {
            final java.lang.Class<?> clazz = java.lang.Class.forName(type.getTypeName());
            return Collection.class.isAssignableFrom(clazz);
        } catch (ClassNotFoundException e) {
            return false;
        }
    }
Checks if the specified type is a java {@link Collection}.

@param type the type to check
@return <code>true</code> if collection, else <code>false</code>
common-parent/codegen/src/main/java/com/speedment/common/codegen/controller/SetGetAdd.java