thymeleaf 2 Building a human-in-the-loop AI review and approval pipeline May 16, 2026 Preventing lost updates with JPA @Version optimistic locking May 12, 2026