@ Nullable public Location getLocation ( final String locationUUID ) throws FlexiantException { final Cluster cluster = this . getCluster ( locationUUID ) ; if ( cluster != null ) { return Location . from ( cluster ) ; } final Vdc vdc = this . getVdc ( locationUUID ) ; if ( vdc != null ) { final Cluster clusterofVDC = this . getCluster ( vdc . getClusterUUID ( ) ) ; checkState ( clusterofVDC != null , String . format ( "Error while retrieving cluster of vdc %s. VDC is in cluster %s, but this cluster " + "does not exist. Looks like the vdc is corrupted." , vdc , vdc . getClusterUUID ( ) ) ) ; return Location . from ( vdc , clusterofVDC ) ; } return null ; }
Retrieves the location identified by the given uuid .