final CurrentInvocation currentInvocation = ActionInvocationFacet.currentInvocation.get();
if(currentInvocation == null) {
return;
}
IdentifiedHolder action = currentInvocation.getAction();
final PublishedActionFacet publishedActionFacet = action.getFacet(PublishedActionFacet.class);
if(publishedActionFacet == null) {
return;
}
final PublishedAction.PayloadFactory payloadFactory = publishedActionFacet.value();
final RootOid adapterOid = (RootOid) currentInvocation.getTarget().getOid();
final String oidStr = getOidMarshaller().marshal(adapterOid);
final Identifier actionIdentifier = action.getIdentifier();
final String title = oidStr + ": " + actionIdentifier.toNameParmsIdentityString();