File f = mps.getLabelFor(jsonObject);
if (f != null) thingsToPrint.add(f);
PrintJob pj = printManager.print(thingsToPrint, mps.getName(), user);
return JSONUtils.SimpleJSONResponse("Job " + pj.getJobId() + " : Barcodes printed.");
}
catch (MisoPrintException e) {
e.printStackTrace();
return JSONUtils.SimpleJSONError("Failed to print barcodes: " + e.getMessage());
}