if(step.getChildCount() == 0) { WorkflowPort port = new WorkflowPort(); step.add(port); }  } else {
  public void addStepDescriptor(StepDescriptor descriptor)  {    StepCell step = new StepCell(descriptor);    if(layout != null)    {      double[] bounds = layout.getBounds(step.getId(), "StepCell");      if(bounds != null)      {        Rectangle2D rect = new Rectangle();        rect.setRect(bounds[0], bounds[1], bounds[2], bounds[3]);        step.getAttributes().put(GraphConstants.BOUNDS, rect);      }      if(step.getChildCount() == 0)      {        WorkflowPort port = new WorkflowPort();        step.add(port);      }    }    else    {    }    // Insert into Model    getWorkflowGraphModel().insertStepCell(step, null, null, null);  }