Program: 74802
Project: 74802
Buggy source:
public ComponentEntity createNestedActor(PtalonActor container) throws PtalonRuntimeException {
  ComponentEntity entity;
  try {
    String uniqueName=container.uniqueName(_symbol);
    if (getType(_symbol).equals("String_Node_Str")) {
      PtalonActor actor=new PtalonActor(container,uniqueName);
      FileParameter location=actor.ptalonCodeLocation;
      File file=_imports.get(_symbol);
      location.setToken(new StringToken(file.toString()));
      actor.setNestedDepth(container.getNestedDepth() + 1);
      assignPtalonParameters(actor);
      entity=actor;
    }
 else     if (getType(_symbol).equals("String_Node_Str")) {
      PtalonParameter parameter=(PtalonParameter)_actor.getAttribute(getMappedName(_symbol));
      if (!parameter.hasValue()) {
        throw new PtalonRuntimeException("String_Node_Str");
      }
      String expression=parameter.getExpression();
      if (expression.startsWith("String_Node_Str")) {
        File file=new File(_parameterToImport(expression));
        PtalonActor ptalonActor=new PtalonActor(container,uniqueName);
        ptalonActor.ptalonCodeLocation.setToken(new StringToken(file.toString()));
        ptalonActor.setNestedDepth(container.getNestedDepth() + 1);
        assignPtalonParameters(ptalonActor);
        entity=ptalonActor;
      }
 else {
        Class<?> genericClass=Class.forName(expression);
        Class<? extends ComponentEntity> entityClass=genericClass.asSubclass(ComponentEntity.class);
        Constructor<? extends ComponentEntity> entityConstructor=entityClass.getConstructor(CompositeEntity.class,String.class);
        entity=entityConstructor.newInstance(container,uniqueName);
      }
    }
 else {
      throw new PtalonRuntimeException("String_Node_Str" + _symbol);
    }
  }
 catch (  Exception e) {
    throw new PtalonRuntimeException("String_Node_Str" + container,e);
  }
  return entity;
}

Fixed version (ground truth):
public ComponentEntity createNestedActor(PtalonActor container) throws PtalonRuntimeException {
  ComponentEntity entity;
  try {
    String uniqueName=container.uniqueName(_symbol);
    if (_getType(_symbol).equals("String_Node_Str")) {
      PtalonActor actor=new PtalonActor(container,uniqueName);
      FileParameter location=actor.ptalonCodeLocation;
      File file=_imports.get(_symbol);
      location.setToken(new StringToken(file.toString()));
      actor.setNestedDepth(container.getNestedDepth() + 1);
      assignPtalonParameters(actor);
      entity=actor;
    }
 else     if (_getType(_symbol).equals("String_Node_Str")) {
      PtalonParameter parameter=(PtalonParameter)_actor.getAttribute(getMappedName(_symbol));
      if (!parameter.hasValue()) {
        throw new PtalonRuntimeException("String_Node_Str");
      }
      String expression=parameter.getExpression();
      if (expression.startsWith("String_Node_Str")) {
        File file=new File(_parameterToImport(expression));
        PtalonActor ptalonActor=new PtalonActor(container,uniqueName);
        ptalonActor.ptalonCodeLocation.setToken(new StringToken(file.toString()));
        ptalonActor.setNestedDepth(container.getNestedDepth() + 1);
        assignPtalonParameters(ptalonActor);
        entity=ptalonActor;
      }
 else {
        Class<?> genericClass=Class.forName(expression);
        Class<? extends ComponentEntity> entityClass=genericClass.asSubclass(ComponentEntity.class);
        Constructor<? extends ComponentEntity> entityConstructor=entityClass.getConstructor(CompositeEntity.class,String.class);
        entity=entityConstructor.newInstance(container,uniqueName);
      }
    }
 else {
      throw new PtalonRuntimeException("String_Node_Str" + _symbol);
    }
  }
 catch (  Exception e) {
    throw new PtalonRuntimeException("String_Node_Str" + container,e);
  }
  return entity;
}