BaseRegion newRegion = null;
if (this.getString(0).equals("cuboid")) {
newRegion = new CuboidRegion(controller);
} else if (this.getString(0).equals("polygon2d")) {
newRegion = new PolygonRegion(controller);
} else if (this.getString(0).equals("ellipsoid")) {
newRegion = new EllipsoidRegion(controller);
} else if (this.getString(0).equals("cylinder")) {
newRegion = new CylinderRegion(controller);
} else {