private Document process(ProceedingJoinPoint pjp) throws Throwable {
Pipeline p = (Pipeline)pjp.getTarget();
Document d = (Document)pjp.getArgs()[0];
MimeType mt = p.getClass().getAnnotation(MimeType.class);
if(mt != null) {
String mimeType = mt.value();
log.debug("Specified document mime type: " + mimeType);
mLastMimeType.set(mt.value());
} else {
log.debug("No mime type specified");
}
return (Document)pjp.proceed();