+ private static final String REPLACE_ME = "${replaceMe}";
+ /**
+ * Set of incomplete request IDs. When a POST or DELETE is performed, the new request
+ * ID is added to the set. When the request is polled, the ID is removed and a "still
+ * running" response is returned. When the request is polled again, it sees that there
+ * is no entry and returns a completion indication.
+ *
+ * <p/>
+ * This is static so request IDs are retained across servlets.
+ */
+ private static final Set<String> incomplete = ConcurrentHashMap.newKeySet();
+
+ /**
+ * {@code True} if requests should require polling, {@code false}
+ * otherwise. This is used when junit testing the SO actor.
+ */
+ @Setter
+ private static boolean requirePolling = false;
+