code: public String getCollectionName(Object entity) {
          if (entity == null) {
              return null;
          }
  
          return getCollectionName(entity.getClass());
      }
docs: Gets the collection name for a given type.
  @param entity entity to get collection name
  @return collection name