AFPObjectAreaInfo objectAreaInfo
= createObjectAreaInfo(paintingState, x, y, width, height, resolution);
// Create AFPGraphicsObjectInfo
AFPResourceInfo resourceInfo = afpInfo.getResourceInfo();
AFPGraphicsObjectInfo graphicsObjectInfo = createGraphicsObjectInfo(
paintingState, painter, userAgent, resourceInfo, g2d);
graphicsObjectInfo.setObjectAreaInfo(objectAreaInfo);
// Create the GOCA GraphicsObject in the DataStream