ModuleAssembly configModule = module;
// START SNIPPET: assembly
new StandaloneShiroAssembler().
withConfig( configModule, Visibility.layer ).
assemble( module );
new PasswordDomainAssembler().
withConfig( configModule, Visibility.layer ).
assemble( module );
module.entities( User.class );
module.services( UserFactory.class );