public static MethodIntf of ( final InterceptorContext invocation ) { //for timer invocations there is no view, so the methodInf is attached directly //to the context. Otherwise we retrieve it from the invoked view MethodIntf methodIntf = invocation . getPrivateData ( MethodIntf . class ) ; if ( methodIntf == null ) { final ComponentView componentView = invocation . getPrivateData ( ComponentView . class ) ; if ( componentView != null ) { methodIntf = componentView . getPrivateData ( MethodIntf . class ) ; } else { methodIntf = MethodIntf . BEAN ; } } return methodIntf ; }
centralize this hack