title: JEE6 Interceptors - extract method variable
body: <p>Is it possible to extract the value of a method variable once/while it is intercepted? I don;t wish to intercept the parameters but an attribute value within the method? e.g.</p>
  
  <pre><code>Business Logic: 
  
  @MyInterceptor
  void myMethod(Object o){
  
   ArrayList myList= null;
   myList= dao.getRecords(o.getId) //intercept the result of this dao call
  
  
  //I only want to call doWork after I have 'validated' contents of myList in interceptor
  
   doWork(myList)
  
  
  }
  
  
  The Interceptor:  
  
  @Interceptor
  @MyInterceptor
  MyInterceptor{
  
  @AroundInvoke{
  public Object invoke(InvocationContext ctx) throws Exception {
  
   //retrieve the contents of myList above and perform validation
   //if it passes validation call ctx.proceed else return error
  
  }
  
  }
  </code></pre>
  
  <p>Thanks</p>