Program: 167526
Project: 167526
Buggy source:
public void open(Object item){
  if (item instanceof FlowStep) {
    FlowStep flowStep=(FlowStep)item;
    String type=flowStep.getComponent().getType();
    if (type.equals(FixedLengthFormatter.TYPE) || type.equals(DelimitedFormatter.TYPE)) {
      EditFormatPanel editFormat=new EditFormatPanel(context,flowStep.getComponent());
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editFormat);
    }
 else     if (type.equals(DbReader.TYPE)) {
      EditDbReaderPanel editFormat=new EditDbReaderPanel(context,flowStep.getComponent());
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editFormat);
      unselectAll();
    }
 else     if (type.equals(EntityRouter.TYPE)) {
      EditEntityRouterPanel editPanel=new EditEntityRouterPanel(context,flowStep,(Flow)treeTable.getParent(flowStep));
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editPanel);
    }
 else     if (type.equals(MappingProcessor.TYPE)) {
      EditMappingPanel editMapping=new EditMappingPanel(context,flowStep.getComponent());
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editMapping);
    }
 else {
      item=context.getConfigurationService().findFlow(flowStep.getFlowId());
    }
  }
  if (item instanceof Flow) {
    Flow flow=(Flow)item;
    EditFlowPanel flowLayout=new EditFlowPanel(context,flow,this,tabs);
    tabs.addCloseableTab(flow.getId(),flow.getName(),Icons.FLOW,flowLayout);
  }
 else   if (item instanceof Model) {
    Model model=(Model)item;
    EditModelPanel editModel=new EditModelPanel(context,model);
    tabs.addCloseableTab(model.getId(),model.getName(),Icons.MODEL,editModel);
  }
 else   if (item instanceof Resource) {
    Resource resource=(Resource)item;
    PropertySheet sheet=new PropertySheet(context);
    sheet.valueChange(resource);
    tabs.addCloseableTab(resource.getId(),resource.getName(),treeTable.getItemIcon(item),sheet);
  }
}

Fixed version (ground truth):
public void open(Object item){
  if (item instanceof FlowStep) {
    FlowStep flowStep=(FlowStep)item;
    String type=flowStep.getComponent().getType();
    if (type.equals(FixedLengthFormatter.TYPE) || type.equals(DelimitedFormatter.TYPE)) {
      EditFormatPanel editFormat=new EditFormatPanel(context,flowStep.getComponent());
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editFormat);
    }
 else     if (type.equals(DbReader.TYPE)) {
      EditDbReaderPanel editFormat=new EditDbReaderPanel(context,flowStep.getComponent(),propertySheet);
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editFormat);
      unselectAll();
    }
 else     if (type.equals(EntityRouter.TYPE)) {
      EditEntityRouterPanel editPanel=new EditEntityRouterPanel(context,flowStep,(Flow)treeTable.getParent(flowStep));
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editPanel);
    }
 else     if (type.equals(MappingProcessor.TYPE)) {
      EditMappingPanel editMapping=new EditMappingPanel(context,flowStep.getComponent());
      tabs.addCloseableTab(flowStep.getId(),flowStep.getName(),Icons.COMPONENT,editMapping);
    }
 else {
      item=context.getConfigurationService().findFlow(flowStep.getFlowId());
    }
  }
  if (item instanceof Flow) {
    Flow flow=(Flow)item;
    EditFlowPanel flowLayout=new EditFlowPanel(context,flow,this,tabs);
    tabs.addCloseableTab(flow.getId(),flow.getName(),Icons.FLOW,flowLayout);
  }
 else   if (item instanceof Model) {
    Model model=(Model)item;
    EditModelPanel editModel=new EditModelPanel(context,model);
    tabs.addCloseableTab(model.getId(),model.getName(),Icons.MODEL,editModel);
  }
 else   if (item instanceof Resource) {
    Resource resource=(Resource)item;
    PropertySheet sheet=new PropertySheet(context);
    sheet.valueChange(resource);
    tabs.addCloseableTab(resource.getId(),resource.getName(),treeTable.getItemIcon(item),sheet);
  }
}