@Produces("application/json")
@Path("{id}")
@RolesAllowed("admin")
public void update(@PathParam("id") String id, Project project) throws Exception
{
StoredProject storedProject = (StoredProject)cache.get(projectCacheId(id));
if (storedProject == null) throw new NotFoundException();
Project stored = (Project) storedProject.getProject();
if (project.getName() != null) stored.setName(project.getName());
if (project.getDescription() != null) stored.setDescription(project.getDescription());
if (project.getEnabled() != null) stored.setEnabled(project.getEnabled());
cache.put(projectCacheId(id), storedProject, -1, TimeUnit.MILLISECONDS);
}