for (Object p : StringUtils.commaDelimitedListToSet(parent)) {
IState state = null;
IWebflowProject project = Activator.getModel().getProject(
getRootElement().getElementResource().getProject());
IWebflowConfig parentConfig = project.getConfig((String) p);
try {
model = StructuredModelManager.getModelManager().getExistingModelForRead(
parentConfig.getElementResource());
if (model == null) {
model = StructuredModelManager.getModelManager().getModelForRead(
(IFile) parentConfig.getElementResource());
}
if (model != null) {
IDOMDocument document = ((DOMModelImpl) model).getDocument();
IWebflowState parentState = new WebflowState(parentConfig);
parentState.init((IDOMNode) document.getDocumentElement(), null);