private static void occErrorIf(boolean errCond, String msg, long id) { if (errCond) { throw new OptimisticConcurrencyControlException(U.format(msg, id), id); } }