public WOActionResults inspectObject(WOComponent value) {
setSender(value);
WOComponent target = (WOComponent)D2WEmbeddedComponent.findTarget(sender());
WOComponent targetParent = target.parent();
...
Can you create a rule like
task = 'edit' and entity.name = 'MyEntity' and object != null ?