In level 2 repositories, new Value instances are created using the ValueFactory object acquired through Session.getValueFactory. (see 7.1 Writing Repository Content and 7.1.5.3 Creating Value Objects).