authorizationBuilder.principalRoleMapper(Class.forName(authorization.getPrincipalMapper(), true, loader).asSubclass(PrincipalRoleMapper.class).newInstance());
} catch (Exception e) {
throw new StartException(e);
}
} else {
authorizationBuilder.principalRoleMapper(new ServerPrincipalMapper());
}
for(Entry<String, List<String>> role : authorization.getRoles().entrySet()) {
GlobalRoleConfigurationBuilder roleBuilder = authorizationBuilder.role(role.getKey());
for(String perm : role.getValue()) {
roleBuilder.permission(perm);