List<KeyValueContainer> displayablePermissions = new ArrayList<KeyValueContainer>();
for (Permission p : permissions) {
try {
String s = this.getResources(req).getMessage(locale,"um.AccessPermission_"+p.getValue());
displayablePermissions.add(new KeyValueContainer(p.getId(), s));
LOGGER.debug("added displayable permission `"+s+"`");
} catch (Exception e) {
String msg = getResources(req).getMessage(locale,"um.missingAccessPermissionName", p.getValue());
throw new ConfigurationException(msg);
}