OP-421 Convert Groovy to Java
Changed how we handle checked exceptions with the unit of work helper