@Around("execution(* org.apache.cocoon.sitemap.node.SerializeNode.invoke(..)) && args(invocation)")
public Object interceptInvoke(ProceedingJoinPoint proceedingJoinPoint, Invocation invocation) throws Throwable {
SerializeNode target = (SerializeNode) proceedingJoinPoint.getTarget();
String statusCode = invocation.resolveParameter(target.getParameters().get("status-code"));
InvocationResult invocationResult = (InvocationResult) proceedingJoinPoint.proceed();
if (invocationResult.isContinued() && statusCode != null) {
try {
setStatusCode(Integer.valueOf(statusCode));
} catch (NumberFormatException nfe) {
throw new InvalidStatusCodeException("The status-code '" + statusCode + " is not valid number.", nfe);
}