EnumVARIANT<OCEnumValueMetadataObject> enumV = new EnumVARIANT<OCEnumValueMetadataObject>(this) {
@Override
protected OCEnumValueMetadataObject castToGeneric(JIVariant variant) {
try {
OCEnumValueMetadataObject meta = new OCEnumValueMetadataObject(variant);
return meta;
} catch (JIException e) {
throw new RuntimeException(e);
}
}