String rpclass = rpobject.getRPClass().getName();
if (rpclass.equals("user")) {
return new User(rpobject);
} 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")) {