} else if (rpclass.equals("dot")) {
return new Dot(rpobject);
} else if (rpclass.equals("rectangle")) {
return new Rectangle(rpobject);
} else if (rpclass.equals("straight_line")) {
return new StraightLine(rpobject);
} else if (rpclass.equals("oval")) {
return new Oval(rpobject);
} else {
logger.error("Unknown Entity class " + rpclass + ": " + rpobject);
return new Entity(rpobject);