else if (((CreateRequest) request).getNewObject() instanceof IActionElement
&& getHost().getModel() instanceof IStateTransition) {
IActionElement action = (IActionElement) ((CreateRequest) request)
.getNewObject();
if (action.getType() == IActionElement.ACTION_TYPE.ACTION) {
AddTransitionActionCommand cmd = new AddTransitionActionCommand();
cmd.setTransition(((IStateTransition) getHost().getModel()));
cmd.setNewAction(((IActionElement) ((CreateRequest) request)
.getNewObject()));
return cmd;
}
}
return null;