} else if ((child = element.getChildByName("ellipse")) != null) {
object = new EllipseMapObject(x, y - height, width, height);
}
}
if (object == null) {
object = new RectangleMapObject(x, y - height, width, height);
}
object.setName(element.getAttribute("name", null));
String rotation = element.getAttribute("rotation", null);
if (rotation != null) {
object.getProperties().put("rotation", Float.parseFloat(rotation));