Instead of invoking run(KijiURI) 3 times differently here, I'd build a List<KijiURI> from nonFlagArgs and always iterate through that list.