LPS-52059 InvalidRepositoryIdException instead of RepositoryIdException should be thrown as RepositoryIdException will not catched.