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();
}