final Builder constraints = desiredValue.getConstraints().copy();
if (adjustValues == null || adjustValues.isEmpty()) {
constraints.withoutAny(HistoricalTimeSeriesFunctionUtils.ADJUST_PROPERTY)
.with(HistoricalTimeSeriesFunctionUtils.ADJUST_PROPERTY, "");
} else {
constraints.withoutAny(HistoricalTimeSeriesFunctionUtils.ADJUST_PROPERTY)
.with(HistoricalTimeSeriesFunctionUtils.ADJUST_PROPERTY, adjustValues.iterator().next());
}
if (ageLimitValues == null || ageLimitValues.isEmpty()) {
constraints.withoutAny(HistoricalTimeSeriesFunctionUtils.AGE_LIMIT_PROPERTY)
.with(HistoricalTimeSeriesFunctionUtils.AGE_LIMIT_PROPERTY, HistoricalTimeSeriesFunctionUtils.UNLIMITED_AGE_LIMIT_VALUE);