Probably this Iterables.getOnlyElement(ll) needs to be (MachineLocation)machine.get()?