if (databaseId == null)
{
// the object is unknown
ObjectStack stack = new ObjectStack(this.adapter,
object.getClass(), object, delayBuffer);
stack.save(cw);
res = stack.getActualRepresentation().getId();
// label the object as having been inserted by the outside
if (protect)
{
protectionManager.protectObjectExternal(tableName, res,