(on the correct line this time) Injecting the DocumentManager and Session is the quickest way to get this working, but a more flexible thing would be to register handler classes which know how to call the Initializer classes.