{return;}
// response servlet object is read from global variable $response
final Variable var = myModule.resolveVariable(ResponseModule.RESPONSE_VAR);
if (var != null && var.getValue() != null) {
final JavaObjectValue value = (JavaObjectValue) var.getValue()
.itemAt(0);
if (value != null
&& value.getObject() instanceof ResponseWrapper) {
// have to take in account that if the header has allready been explicitely set
// by the XQuery script, we should not modify it .
final ResponseWrapper responseWrapper = ((ResponseWrapper) value.getObject());
if ( responseWrapper.getDateHeader("Last-Modified") == 0 )
{responseWrapper.setDateHeader(
"Last-Modified", mostRecentDocumentTime);}
}
}