String res = null;
try {
res = selection.getString(paramString);
} catch (java.lang.IllegalStateException e) {
try {
OCVariant variant = selection.getValue(paramString);
Object o = variant.value();
if (o != null) {
if (o instanceof _OCCommonRef) {
res = ((_OCCommonRef) o).getUUID().toString();
} else {
res = o.toString();