@Path("roles/{userName}")
public List<Role> listUserRoles(String userName) {
List<org.jrest4guice.sample.contact.entity.Role> userRoles = this.domain
.getUserRoles(userName);
List<Role> roles = new ArrayList<Role>(userRoles.size());
Role role;
for (org.jrest4guice.sample.contact.entity.Role _role : userRoles) {
role = new Role();
role.setId(_role.getId());
role.setName(_role.getName());
roles.add(role);
}
return roles;
}