CAMEL-7067 Only persist changes when no exceptions occurred with thanks to Gregor
CAMEL-7102 Fixed the broken JUnit classes for testing authentication in camel-jcr with thanks to Gregor