if (userManagers != null) {
for (BeanEntry<Named, UserManager> entry : userManagers) {
String hint = entry.getKey().value();
String description = entry.getDescription();
PlexusComponentListResource resource = new PlexusComponentListResource();
resource.setRoleHint(hint);
resource.setDescription((StringUtils.isNotEmpty(description)) ? description : hint);
// add it to the collection
result.addData(resource);
}
}