You may factorize this bit (retrieve & exception throwing if not found) in a method.