type = LookupUtil.getResourceGroupManager().getResourceGroup(overlord, defForm.getGroupId())
.getResourceType();
} else {
throw new IllegalArgumentException("Unsupported context: " + formContext);
}
ResourceFacets facets = LookupUtil.getResourceTypeManager().getResourceFacets(type.getId());
request.setAttribute("showEvents", facets.isEvent());
if (facets.isEvent() && triggerNotSet)
defForm.getCondition(0).setTrigger("onEvent");
request.setAttribute("showOperations", defForm.getControlActions().size() > 0);
if (defForm.getControlActions().size() > 0 && triggerNotSet)
defForm.getCondition(0).setTrigger("onOperation");