docs: protected void cleanEntityForSave(final RESTBaseElementV1<?> entity) throws InvocationTargetException, IllegalAccessException {
          if (entity == null) return;
  
          for (final Method method : entity.getClass().getMethods()) {
              // If the method isn't a getter or returns void then skip it
              if (!method.getName().startsWith("get") || method.getReturnType().equals(Void.TYPE)) continue;
  
              // An entity might have
              if (isCollectionClass(method.getReturnType())) {
                  cleanCollectionForSave((RESTBaseEntityCollectionV1<?, ?, ?>) method.invoke(entity), true);
              } else if (isEntityClass(method.getReturnType())) {
                  cleanEntityForSave((RESTBaseElementWithConfiguredParametersV1) method.invoke(entity));
              }
          }
      }