// TreeMap has build in support for lazily loaded values.
// In that case each value are not stored inside node,
// but in separate record.
// use DB.createTreeMap to create TreeMap with non-default parameters
// Other option for lazily loaded record is to use Atomic.Var.
// In this case you have singleton record with name.
// As bonus you can update reference in thread-safe atomic manner.
// Last option is to use low level Engine storage directly.
// Each stored record gets assigned unique recid (record id),
// which is latter used to get or update record.
// Your code should store only recid as reference to object.
// All MapDB collections are written this way.
//insert new record
//I hope this example helped!