Source:
<code>public QueryRequest createQueryRequest(String localSource, FilterBuilder filterBuilder) { List<SortBy> sortBys = sorts .stream() .filter( s -> StringUtils.isNotEmpty(s.getAttribute()) && StringUtils.isNotEmpty(s.getDirection())) .map(s -> parseSort(s.getAttribute(), s.getDirection())) .collect(Collectors.toList()); if (sortBys.isEmpty()) { sortBys.add(new SortByImpl(Result.TEMPORAL, DEFAULT_SORT_ORDER)); } Query query = new QueryImpl(createFilter(filterBuilder), start, count, sortBys.get(0), true, timeout); QueryRequest queryRequest; if (srcs != null && srcs.length != 0) { parseSrcs(localSource); queryRequest = new QueryRequestImpl(query, Arrays.asList(srcs)); <START> queryRequest.getProperties().put(MODE, "update"); <END> } else { String source = parseSrc(localSource); if (CACHE_SOURCE.equals(source)) { queryRequest = new QueryRequestImpl(query, true); queryRequest.getProperties().put(MODE, CACHE_SOURCE); } else { queryRequest = new QueryRequestImpl(query, Collections.singleton(source)); queryRequest.getProperties().put(MODE, "update"); } } if (excludeUnnecessaryAttributes) { queryRequest .getProperties() .put("excludeAttributes", Sets.newHashSet(Metacard.METADATA, "lux")); } if (sortBys.size() > 1) { queryRequest .getProperties() .put(ADDITIONAL_SORT_BYS, sortBys.subList(1, sortBys.size()).toArray(new SortBy[0])); } queryRequest.getProperties().put("requestId", id); if (StringUtils.isNotEmpty(batchId)) { queryRequest.getProperties().put("batchId", batchId); } if (StringUtils.isNotEmpty(queryType)) { queryRequest.getProperties().put("queryType", queryType); } return queryRequest; }</code><technical_language>"update" a constant too</technical_language>

Target:
public QueryRequest createQueryRequest(String localSource, FilterBuilder filterBuilder) { List<SortBy> sortBys = sorts .stream() .filter( s -> StringUtils.isNotEmpty(s.getAttribute()) && StringUtils.isNotEmpty(s.getDirection())) .map(s -> parseSort(s.getAttribute(), s.getDirection())) .collect(Collectors.toList()); if (sortBys.isEmpty()) { sortBys.add(new SortByImpl(Result.TEMPORAL, DEFAULT_SORT_ORDER)); } Query query = new QueryImpl(createFilter(filterBuilder), start, count, sortBys.get(0), true, timeout); QueryRequest queryRequest; if (!CollectionUtils.isEmpty(srcs)) { parseSrcs(localSource); queryRequest = new QueryRequestImpl(query, srcs); queryRequest.getProperties().put(MODE, UPDATE); } else { String source = parseSrc(localSource); if (CACHE_SOURCE.equals(source)) { queryRequest = new QueryRequestImpl(query, true); queryRequest.getProperties().put(MODE, CACHE_SOURCE); } else { queryRequest = new QueryRequestImpl(query, Collections.singleton(source)); queryRequest.getProperties().put(MODE, UPDATE); } } if (excludeUnnecessaryAttributes) { queryRequest .getProperties() .put("excludeAttributes", Sets.newHashSet(Metacard.METADATA, "lux")); } if (sortBys.size() > 1) { queryRequest .getProperties() .put(ADDITIONAL_SORT_BYS, sortBys.subList(1, sortBys.size()).toArray(new SortBy[0])); } queryRequest.getProperties().put("requestId", id); if (StringUtils.isNotEmpty(batchId)) { queryRequest.getProperties().put("batchId", batchId); } if (StringUtils.isNotEmpty(queryType)) { queryRequest.getProperties().put("queryType", queryType); } return queryRequest; }