private static void storeOmeroPoint(omero.model.Shape shape,
MetadataStore store, int roiNum, int shapeNum) {
PointI shape1 = (PointI) shape;
double ox1 = shape1.getX().getValue();
double oy1 = shape1.getY().getValue();
String polylineID = MetadataTools.createLSID("Shape", roiNum, shapeNum);
store.setPointID(polylineID, roiNum, shapeNum);
store.setPointX(ox1, roiNum, shapeNum);
store.setPointY(oy1, roiNum, shapeNum);
store.setPointTheC(unwrap(shape1.getTheC()), roiNum, shapeNum);
store.setPointTheZ(unwrap(shape1.getTheZ()), roiNum, shapeNum);
store.setPointTheT(unwrap(shape1.getTheT()), roiNum, shapeNum);
if (shape1.getTextValue() != null){
store.setPointText(shape1.getTextValue().getValue(), roiNum, shapeNum);
}
if (shape1.getStrokeWidth() != null) {
store.setPointStrokeWidth(new ome.units.quantity.Length(shape1.getStrokeWidth().getValue(), UNITS.PIXEL), roiNum, shapeNum);
}
if (shape1.getStrokeColor() != null){
store.setPointStrokeColor(new ome.xml.model.primitives.Color(shape1.getStrokeColor().getValue()), roiNum, shapeNum);
}
if (shape1.getFillColor() != null){
store.setPointFillColor(new ome.xml.model.primitives.Color(shape1.getFillColor().getValue()), roiNum, shapeNum);
}
}