WGFactory.setModuleRegistry(_moduleRegistry);
_moduleRegistry.getContextObjects().put(WGACore.class, this);
updateModuleDefinitions(true);
PasswordOptionEncoder encoder;
String passwordEncoderKey = _wgaConfiguration.getPasswordEncoding();
try {
ModuleDefinition passwordEncoderModDef = _moduleRegistry.getModuleDefinitionByKey(PasswordEncodingType.class, passwordEncoderKey);
if (passwordEncoderModDef != null) {
Class passwordEncoderClass = passwordEncoderModDef.getImplementationClass();