code: @SuppressWarnings("unchecked")
      public <T> T singleResult(Object object) {
          if (object == null) {
              return null;
          }
          if (object instanceof Collection) {
              final Collection<T> result = (Collection<T>)object;
              return CollectionUtils.isEmpty(result) ? null : result.iterator().next();
          }
          return null;
      }
docs: Used to return the first record in a collection. This method is intended to be used
  to wrap {@link Query#execute()} and its derivatives.
  @param object a collection object (or anything that extends collection)
  @param <T> the type of object returned, or null if object was null, not a collection, or collection was empty
  @return A single results
  @since 1.4.4