tx.getBroker().getClassDescriptor(myObj.getClass()), oid, myObj);
}
catch(PersistenceBrokerException ex)
{
LoggerFactory.getDefaultLogger().error("ObjectEnvelope: ", ex);
throw new ODMGRuntimeException("Unexpected error while check existence of "
+ myObj + ", exception was "+ ex);
}
if(needsInsert)
{
// if object is not already persistent it must be marked as new