@GET
@Path("{projectId}/users/{userId}/roles")
public Roles getProjectDetails(@PathParam("projectId") long projectId, @PathParam("userId") long userId)
throws CloudException {
UserData user = getUser(userId);
ProjectData project = getProject(projectId);
Roles response = new Roles();
response.roles = Lists.newArrayList();
ProjectRoles projectRoles = Users.findProjectRoles(user, project.getId());
if (projectRoles != null) {
for (long roleId : projectRoles.getRoleList()) {
RoleData role = identityService.findRole(roleId);
if (role == null) {
log.warn("Role not found: {}", roleId);