private CometeRoi createRoi(final String[] roiDesc) {
CometeRoi roi = null;
if (roiDesc.length == ROI_DESC_LENGTH) {
RoiShape shape = null;
try {
shape = RoiShape.valueOf(roiDesc[1].trim().toUpperCase(Locale.US));
} catch (final IllegalArgumentException e) {
new ErrorDialog(null, "Can not create ROI", "Invalid ROI Shape not added " + Arrays.toString(roiDesc)
+ ".\n\nCorrect values are RECTANGLE, OVAL, POINT, TEXT or CROSS and NONE to supress it.",