{
// Locate the fragment
Coordinate coordinate = (Coordinate)this.fragmentCoordinateMap.get(fragment);
if(coordinate == null)
{
throw new PortletPlacementException("fragment not found:" + fragment.getName());
}
int col = coordinate.getOldCol();
int row = coordinate.getOldRow();
if(col < 0 || col > this.columnsList.length)
{
throw new PortletPlacementException("column out of bounds:" + fragment.getName());
}
Vector columnArray = (Vector)this.columnsList[col];
if(row < 0 || row > columnArray.size())
{
throw new PortletPlacementException("row out of bounds:" + fragment.getName());
}
// Remove the fragment from the array
columnArray.remove(row);