Thank's. Yes but that would still require "ctx.getTarget() instanceof Foo" check if I understand it correctly.