}
public synchronized void insert_abstract(java.lang.Object value)
throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
org.omg.DynamicAny.DynAnyPackage.InvalidValue {
Any any = _OB_currentAny();
if (any == null)
throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
org.omg.CORBA.TypeCode type = any.type();
org.omg.CORBA.TypeCode origTC = TypeCode._OB_getOrigType(type);
if (origTC.kind() != org.omg.CORBA.TCKind.tk_abstract_interface)
throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
if (value == null)
any.insert_Value(null, type);
else if (value instanceof java.io.Serializable)
any.insert_Value((java.io.Serializable) value, type);
else if (value instanceof org.omg.CORBA.Object)
any.insert_Object((org.omg.CORBA.Object) value, type);
else
throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
notifyParent();
}