Is there not already a method that does this? Looks a lot like `Jenkins.getItem(String, ItemGroup)`.