```java
Optional<JcloudsSshMachineLocation> lookup = Machines.findUniqueElement(loc.getChildren(), JcloudsSshMachineLocation.class);
Preconditions.checkState(lookup.isPresent(), "Must be a JcloudsSshMachineLocation available"); 
JcloudsSshMachineLocation machine = lookup.get();
```