// the collection was modified, retrieve it from the store
Collection<DefectBean> defects = store.getDefects();
// return the collection and add its last modified date on the response
return Response.ok(new DefectsBean(defects)).lastModified(lastModifiedIgnoreMillis).build();
}