Object object = getPath(field);
Object object = getPath(field);
Object object = getPath(field);
/** * Retrieves the object from the composite, prioritizes payload then * indexed. * * Attempts to replace "_" in field names to ":" to prioritize payload * content. * * @param field * @return */ public Object getPath(String field) { Object object = null; if (field.indexOf("_") != -1) { String convertedFieldName = field.replace("_", ":"); object = getPath(convertedFieldName); if (object != null) { return object; } } if (payloadData != null) { object = payloadData.getPath(field); // log.debug("Using payload: " + field + " with value: " + object); } if (object == null) { object = indexedData.getPath(field); // log.debug("Using Indexed: " + field + " with value: " + object); } return object; }