Updated code to include try/catch blocks and to make use of the RunTimeException handler set in the repository configuration