return null;
}
private EditableDocument updateCachingTtl( Connector connector,
EditableDocument editableDocument ) {
DocumentReader reader = new FederatedDocumentReader(translator(), editableDocument);
// there isn't a specific value set on the document, but the connector has a default value
if (reader.getCacheTtlSeconds() == null && connector.getCacheTtlSeconds() != null) {
DocumentWriter writer = new FederatedDocumentWriter(null, editableDocument);
writer.setCacheTtlSeconds(connector.getCacheTtlSeconds());
return writer.document();
}
return editableDocument;