IProject project = getProject(parent);
WebflowProject webflowProject = (WebflowProject) Activator.getModel().getProject(project);
if (!webflowProject.isUpdatable()) {
return Status.CANCEL_STATUS;
}
IBeansModelElement beansElement = BeansCorePlugin.getModel().getConfig(file);
if (beansElement != null && resource.getProject().equals(project)
&& !webflowConfig.getBeansConfigs().contains(beansElement)) {
Set<IModelElement> beanElements = webflowConfig.getBeansConfigs();
beanElements.add(beansElement);