Program: 45552
Project: 45552
Buggy source:
/** 
 * Creates a cell in the world given the CellServerState of the cell. If the given CellServerState is null, this method simply does not create a Cell. This method attempts to position the Cell "optimally" so that the avatar can see it, based upon "hints" about the Cell bounds given to it in the CellServerState.
 * @param state The cell server state for the new cell
 * @param parentCellID The Cell ID of the parent, of null for world root
 * @throw CellCreationException Upon error creating the cell
 */
public static void createCell(CellServerState state,CellID parentCellID) throws CellCreationException {
  if (state == null) {
    logger.fine("String_Node_Str");
    return;
  }
  ViewManager vm=ViewManager.getViewManager();
  ViewCell viewCell=vm.getPrimaryViewCell();
  CellTransform viewTransform=viewCell.getWorldTransform();
  ServerSessionManager manager=viewCell.getCellCache().getSession().getSessionManager();
  CellTransform transform=null;
  BoundingVolumeHint hint=state.getBoundingVolumeHint();
  logger.info("String_Node_Str" + hint.getBoundsHint() + "String_Node_Str"+ hint.isDoSystemPlacement());
  if (hint != null && hint.isDoSystemPlacement() == true) {
    BoundingVolume boundsHint=hint.getBoundsHint();
    transform=CellPlacementUtils.getCellTransform(manager,boundsHint,viewTransform);
  }
 else   if (hint == null) {
    BoundingVolume boundsHint=new BoundingSphere(DEFAULT_RADIUS,Vector3f.ZERO);
    transform=CellPlacementUtils.getCellTransform(manager,boundsHint,viewTransform);
  }
 else   if (hint != null && hint.isDoSystemPlacement() == false) {
    transform=viewTransform;
  }
  if (parentCellID != null) {
    Cell parent=viewCell.getCellCache().getCell(parentCellID);
    CellTransform worldTransform=new CellTransform(null,null);
    CellTransform parentTransform=parent.getWorldTransform();
    logger.info("String_Node_Str" + parentTransform.getTranslation(null).toString() + "String_Node_Str"+ parentTransform.getRotation(null).toString());
    transform=CellPlacementUtils.transform(transform,worldTransform,parentTransform);
  }
  logger.info("String_Node_Str" + transform.getTranslation(null).toString());
  PositionComponentServerState position=(PositionComponentServerState)state.getComponentServerState(PositionComponentServerState.class);
  if (position == null) {
    position=new PositionComponentServerState();
    state.addComponentServerState(position);
  }
  position.setTranslation(transform.getTranslation(null));
  position.setRotation(transform.getRotation(null));
  position.setScaling(transform.getScaling(null));
  state.addComponentServerState(new ViewComponentServerState(viewTransform));
  WonderlandSession session=manager.getPrimarySession();
  CellEditChannelConnection connection=(CellEditChannelConnection)session.getConnection(CellEditConnectionType.CLIENT_TYPE);
  CellCreateMessage msg=new CellCreateMessage(parentCellID,state);
  connection.send(msg);
}

Fixed version (ground truth):
/** 
 * Creates a cell in the world given the CellServerState of the cell. If the given CellServerState is null, this method simply does not create a Cell. This method attempts to position the Cell "optimally" so that the avatar can see it, based upon "hints" about the Cell bounds given to it in the CellServerState.
 * @param state The cell server state for the new cell
 * @param parentCellID The Cell ID of the parent, of null for world root
 * @throw CellCreationException Upon error creating the cell
 */
public static void createCell(CellServerState state,CellID parentCellID) throws CellCreationException {
  if (state == null) {
    logger.fine("String_Node_Str");
    return;
  }
  ViewManager vm=ViewManager.getViewManager();
  ViewCell viewCell=vm.getPrimaryViewCell();
  CellTransform viewTransform=viewCell.getWorldTransform();
  ServerSessionManager manager=viewCell.getCellCache().getSession().getSessionManager();
  CellTransform transform=null;
  BoundingVolumeHint hint=state.getBoundingVolumeHint();
  logger.info("String_Node_Str" + hint.getBoundsHint() + "String_Node_Str"+ hint.isDoSystemPlacement());
  if (hint != null && hint.isDoSystemPlacement() == true) {
    BoundingVolume boundsHint=hint.getBoundsHint();
    transform=CellPlacementUtils.getCellTransform(manager,boundsHint,viewTransform);
  }
 else   if (hint == null) {
    BoundingVolume boundsHint=new BoundingSphere(DEFAULT_RADIUS,Vector3f.ZERO);
    transform=CellPlacementUtils.getCellTransform(manager,boundsHint,viewTransform);
  }
 else   if (hint != null && hint.isDoSystemPlacement() == false) {
    transform=viewTransform;
  }
  if (parentCellID != null) {
    Cell parent=viewCell.getCellCache().getCell(parentCellID);
    CellTransform worldTransform=new CellTransform(null,null);
    CellTransform parentTransform=parent.getWorldTransform();
    logger.info("String_Node_Str" + parentTransform.getTranslation(null).toString() + "String_Node_Str"+ parentTransform.getRotation(null).toString());
    transform=CellPlacementUtils.transform(transform,worldTransform,parentTransform);
  }
  logger.info("String_Node_Str" + transform.getTranslation(null).toString());
  PositionComponentServerState position=(PositionComponentServerState)state.getComponentServerState(PositionComponentServerState.class);
  if (position == null) {
    position=new PositionComponentServerState();
    state.addComponentServerState(position);
    position.setTranslation(transform.getTranslation(null));
    position.setRotation(transform.getRotation(null));
    position.setScaling(transform.getScaling(null));
  }
  state.addComponentServerState(new ViewComponentServerState(viewTransform));
  WonderlandSession session=manager.getPrimarySession();
  CellEditChannelConnection connection=(CellEditChannelConnection)session.getConnection(CellEditConnectionType.CLIENT_TYPE);
  CellCreateMessage msg=new CellCreateMessage(parentCellID,state);
  connection.send(msg);
}