code: private Object filterValue(Object value)
     {
        if (value instanceof Boolean && !((Boolean) value).booleanValue())
        {
           value = null;
        }
        if (value instanceof String && ((String) value).isEmpty())
        {
           value = null;
        }
        if (value instanceof Double && ((Double) value).doubleValue() == 0.0)
        {
           value = null;
        }
        if (value instanceof Integer && ((Integer) value).intValue() == 0)
        {
           value = null;
        }
        if (value instanceof Duration && ((Duration) value).getDuration() == 0.0)
        {
           value = null;
        }
  
        return value;
     }
docs: Replace default values will null, allowing them to be ignored.
  
  @param value value to test
  @return filtered value