if (subCell != null) {
CellPosition oldPosition = subCell.getPosition();
Sample sample = subCell.getSample();
Cell parent = subCell.getParent();
parent.removeChildrenForMove(oldPosition);
parent.addChildren(cellPosition, sample);
}
} else if (userObject instanceof Cell) {
Cell cell = (Cell) userObject;
if (cell != null) {
Sample sample = cell.getSample();