Program: 45861
Project: 45861
Buggy source:
public DeployedModel deployToModule(File moduleRootDir,ImportedModel importedModel) throws IOException {
  String modelName=getFilename(importedModel.getOriginalURL());
  HashMap<String,String> textureDeploymentMapping=new HashMap();
  DeployedModel deployedModel=new DeployedModel(importedModel.getOriginalURL(),this);
  LoaderData data=new LoaderData();
  data.setDeployedTextures(textureDeploymentMapping);
  data.setModelLoaderClassname(this.getClass().getName());
  deployedModel.setLoaderData(data);
  String moduleName=moduleRootDir.getName();
  String targetDirName=moduleRootDir.getAbsolutePath() + File.separator + "String_Node_Str"+ File.separator+ modelName;
  File targetDir=new File(targetDirName);
  targetDir.mkdirs();
  deployTextures(targetDir,textureDeploymentMapping,importedModel);
  ModelCellServerState cellSetup=new ModelCellServerState();
  ModelCellComponentServerState setup=new ModelCellComponentServerState();
  cellSetup.addComponentServerState(setup);
  cellSetup.setName(importedModel.getWonderlandName());
  Vector3f offset=importedModel.getRootBG().getLocalTranslation();
  PositionComponentServerState position=new PositionComponentServerState();
  Vector3f boundsCenter=importedModel.getRootBG().getWorldBound().getCenter();
  offset.subtractLocal(boundsCenter);
  deployedModel.setModelTranslation(offset);
  deployedModel.setModelRotation(importedModel.getModelBG().getLocalRotation());
  deployedModel.setModelScale(importedModel.getModelBG().getLocalScale());
  position.setTranslation(boundsCenter);
  BoundingVolume worldBounds=importedModel.getModelBG().getWorldBound();
  worldBounds.setCenter(new Vector3f(0,0,0));
  position.setBounds(worldBounds);
  cellSetup.addComponentServerState(position);
  deployedModel.addCellServerState(cellSetup);
  deployModels(targetDir,moduleName,deployedModel,importedModel,textureDeploymentMapping,setup);
  return deployedModel;
}

Fixed version (ground truth):
public DeployedModel deployToModule(File moduleRootDir,ImportedModel importedModel) throws IOException {
  String modelName=getFilename(importedModel.getOriginalURL());
  HashMap<String,String> textureDeploymentMapping=new HashMap();
  DeployedModel deployedModel=new DeployedModel(importedModel.getOriginalURL(),this);
  LoaderData data=new LoaderData();
  data.setDeployedTextures(textureDeploymentMapping);
  data.setModelLoaderClassname(this.getClass().getName());
  deployedModel.setLoaderData(data);
  String moduleName=moduleRootDir.getName();
  String targetDirName=moduleRootDir.getAbsolutePath() + File.separator + "String_Node_Str"+ File.separator+ modelName;
  File targetDir=new File(targetDirName);
  targetDir.mkdirs();
  deployTextures(targetDir,textureDeploymentMapping,importedModel);
  ModelCellServerState cellSetup=new ModelCellServerState();
  ModelCellComponentServerState setup=new ModelCellComponentServerState();
  cellSetup.addComponentServerState(setup);
  cellSetup.setName(importedModel.getWonderlandName());
  cellSetup.setBoundingVolumeHint(new BoundingVolumeHint(false,importedModel.getModelBG().getWorldBound()));
  Vector3f offset=importedModel.getRootBG().getLocalTranslation();
  PositionComponentServerState position=new PositionComponentServerState();
  Vector3f boundsCenter=importedModel.getRootBG().getWorldBound().getCenter();
  offset.subtractLocal(boundsCenter);
  deployedModel.setModelTranslation(offset);
  deployedModel.setModelRotation(importedModel.getModelBG().getLocalRotation());
  deployedModel.setModelScale(importedModel.getModelBG().getLocalScale());
  position.setTranslation(boundsCenter);
  BoundingVolume worldBounds=importedModel.getModelBG().getWorldBound();
  worldBounds.setCenter(new Vector3f(0,0,0));
  position.setBounds(worldBounds);
  cellSetup.addComponentServerState(position);
  deployedModel.addCellServerState(cellSetup);
  deployModels(targetDir,moduleName,deployedModel,importedModel,textureDeploymentMapping,setup);
  return deployedModel;
}