if (!(o instanceof RoundRectangle2D))
{
throw new ObjectFactoryException("The given object is no java.awt.geom.Rectangle2D.");
}
final RoundRectangle2D rect = (RoundRectangle2D) o;
final float x = (float) rect.getX();
final float y = (float) rect.getY();
final float w = (float) rect.getWidth();
final float h = (float) rect.getHeight();
final float aw = (float) rect.getArcWidth();
final float ah = (float) rect.getArcHeight();
setParameter("x", new Float(x));
setParameter("y", new Float(y));
setParameter("width", new Float(w));
setParameter("height", new Float(h));