public List<InstanceData> listInstances(Auth auth, Project project) throws CloudException {
List<InstanceData> instances = Lists.newArrayList();
if (project == null) {
Domain domainAdmin = auth.findDomainWithAdminRole();
if (domainAdmin == null) {
throw new WebApplicationException(Status.FORBIDDEN);
}
for (long projectId : computeRepository.listInstanceProjects()) {