Sure. I am not sure I see a practical difference between the catching of Exception vs. RuntimeException though, but that would also be fine.