code: protected boolean isEmptyEntity(Object entity) {
          return entity == null || (entity instanceof Collection && ((Collection) entity).isEmpty());
      }
docs: <p>isEmptyEntity.</p>
  
  @param entity a {@link java.lang.Object} object.
  @return a boolean.