title: How to wrap (envelop, enclose?) @WebMethod execution in custom annotated class
body: <p>With using of JAX-WS, implemented <code>@WebMethod</code> method in <code>@WebService</code> class.
  Need to do something like this:</p>
  
  <p><strong>WebService.java:</strong></p>
  
  <pre><code>@WebMethod
  @MyWrapper
  public Object someWebserviceMethod() ...
  </code></pre>
  
  <p>Here is <code>MyWrapper</code> annotation, which must wrap call of <code>someWebserviceMethod</code> into another code, where it will be decided whether to execute it or not.   For example, in such way:  </p>
  
  <p><strong>MyWrapperImpl.java:</strong></p>
  
  <pre><code>...
  public Object wrapMethodExecution( contextOfCalledWebMethod ) {
      if ( someFlag ) {
          //then contextOfCalledWebMethod called to execute someWebserviceMethod
          //or directly call Method.invoke()
      } else {
          return null; //or error message
      }
  </code></pre>
  
  <p>So <code>wrapMethodExecution()</code> needs to be automatically called before the call to any method, annotated with <code>@MyWrapper</code>.</p>
  
  <p>Is it possible to perform such pattern by using jax-ws?</p>
  
  <p>I tried to use <code>WebServiceFeatureAnnotation</code> but failed.</p>