Looking at the rest of the code, it seems that returning this -1L special value eventually leads to throwing an exception:
+ if (postPuts == null) {
+        throw new ProcessingException
If that an exceptional case, it might be a good idea to throw an exception (instead of return -1) from the very first moment that we face it.