}
else if (part.getModel() instanceof IExceptionHandler) {
IState state = (IState) getHost().getModel();
if (!(state instanceof IWebflowState)
&& !(state instanceof IInlineFlowState)) {
ExceptionHandlerCloneCommand orphan = new ExceptionHandlerCloneCommand();
orphan.setChild((IExceptionHandler) ((EditPart) parts.get(i))
.getModel());
orphan.setNewState((IWebflowModelElement) getHost()
.getModel());
result.add(orphan);
}
}
else if (part.getModel() instanceof IAttributeMapper) {
IState state = (IState) getHost().getModel();
if (state instanceof SubflowState
&& ((SubflowState) state).getAttributeMapper() == null) {
AttributeMapperCloneCommand orphan = new AttributeMapperCloneCommand();
orphan.setChild((IAttributeMapper) ((EditPart) parts.get(i))
.getModel());
orphan.setNewState((IWebflowModelElement) getHost()
.getModel());
result.add(orphan);
}
}
}