code: @SuppressWarnings({"unchecked", "rawtypes"})
      public <T extends BaseWrapper<T>, U> CollectionWrapper<T> createCollection(final Collection<U> collection, final Class<U> entityClass,
              boolean isRevisionCollection, final DBCollectionHandler<U> handler) {
          if (collection == null) {
              return null;
          }
  
          final DBCollectionWrapper wrapper = (DBCollectionWrapper) createCollection(collection, entityClass, isRevisionCollection);
          wrapper.setHandler(handler);
  
          return wrapper;
      }
docs: Create a wrapper around a collection of entities.
  
  @param collection           The collection to be wrapped.
  @param entityClass          The class of the entity that the collection contains.
  @param isRevisionCollection Whether or not the collection is a collection of revision entities.
  @param handler
  @param <T>                  The wrapper class that is returned.
  @return The Wrapper around the collection of entities.