AuthorizationConfiguration authorization = this.dependencies.getAuthorizationConfiguration();
GlobalAuthorizationConfigurationBuilder authorizationBuilder = builder.security().authorization();
if (authorization != null) {
authorizationBuilder.enable();
if (authorization.getPrincipalMapper() != null) {
try {
authorizationBuilder.principalRoleMapper(Class.forName(authorization.getPrincipalMapper(), true, loader).asSubclass(PrincipalRoleMapper.class).newInstance());
} catch (Exception e) {
throw new StartException(e);