ServletRequest sr = (ServletRequest)oReq;
String sKey = RequestContext.REFERENCEKEY;
RequestContext rc = (RequestContext)sr.getAttribute(sKey);
if (rc != null) {
LogUtil.getLogger().finest("Ensuring RequestContext.onExecutionPhaseCompleted()");
rc.onExecutionPhaseCompleted();
}
// check to see if an exception was thrown by the multipart filter
Object oErr = sr.getAttribute("MultipartFilterException");
if ((oErr != null) && (oErr instanceof Throwable)) {