DO NOT USE THIS INSTANCE FOR LIVE DATA!!!!
CommitFailedException.throwRepositoryException should just wrap itself into a RepositoryException and throw that instead.