private boolean isBuildable(String user) {
UserManager userManager = UserManager.getInstance();
try {
for (Iterator i = userManager.getGroups().iterator(); i.hasNext();) {
Group g = (Group) i.next();
if (g.containsUser(dto.getName()) && g.containsUser(user))
return true;
}
} catch (Exception e) {
log.warn("error while checking if " + user + " has access to build " + dto.getName(), e);
}