code: public static <T> Map<String, Object> getRowFromObject(T entity) throws IllegalAccessException, InstantiationException,
              InvocationTargetException {
          Field[] fields = AnnotationUtils.filterDeepFields(entity.getClass());
  
          Map<String, Object> row = new HashMap<>();
  
          for (Field field : fields) {
              Method method = Utils.findGetter(field.getName(), entity.getClass());
              Object object = method.invoke(entity);
              if (object != null) {
                  row.put(AnnotationUtils.deepFieldName(field), object);
              }
          }
          return row;
      }
docs: Returns a JDBC row data structure from a Stratio Deep Entity.
  @param entity Stratio Deep entity.
  @param <T> Stratio Deep entity type.
  @return JDBC row data structure from a Stratio Deep Entity.
  @throws IllegalAccessException
  @throws InstantiationException
  @throws InvocationTargetException