@POST
@Path("/patch")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML + Q, MediaType.TEXT_XML + Q })
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML })
public AlertPatchCreationResponse createPatches(AlertPatchSet alertPatches) {
AlertPatchCreationResponse response = new AlertPatchCreationResponse();
for (AlertPatch alertPatch : alertPatches.alertPatches) {
if (alertPatch.getId() == null) {
response.status = "Every patch must have an id";
return response;
}