//System.out.println("before, num docs=" + toModify.getQueueList().size() + " adding " + docs.size() + " from " + ignoreBeforeId);
// Some alerting preamble
StringBuffer alertText = null;
StringBuffer alertTitle = null;
String rootUrl = new PropertiesManager().getURLRoot().replace("/api/", "");
int maxDocsToAdd = 10; // (default)
boolean alert = false;
if ((null != toModify.getQueryInfo().getAlert()) && (null != toModify.getQueryInfo().getAlert().getEmailAddresses())
&& !toModify.getQueryInfo().getAlert().getEmailAddresses().isEmpty())
{