CORAL-132 when update statement is not effective, assume that the row is
missing and issue insert instead.
CORAL-132: use Java 7 try with resources syntax