popAdvisor() is deprecated I think, you should use popAdvisor(advisor) and you should do it in an try{} finally {} block so that it's impossible to escape with the advisor still on the stack.