"text/csv"})
public DefectsAsset getDefects(@QueryParam(FTS) String query,
@QueryParam(SEVERIIY) String severity,
@QueryParam(ASSIGNED_TO) String assignedTo) {
DataStore store = DataStore.getInstance();
// fill search parameters
// the parameters may be absent, the SearchMap will do the filtering
SearchMap searchParameters = new SearchMap();
searchParameters.put(FTS, query);
searchParameters.put(SEVERIIY, severity);
searchParameters.put(ASSIGNED_TO, assignedTo);
// get the defects that match the search criteria
Collection<DefectBean> defects = store.getDefects(searchParameters);
return new DefectsAsset(defects);
}