code: private Object getTargetBean(final Invocation invocation)
     {
        final InvocationContext invocationContext = invocation.getInvocationContext();
  
        return invocationContext.getTargetBean();
     }
docs: Returns endpoint instance associated with current invocation.
  
  @param invocation current invocation
  @return target bean in invocation