private String findSVMName(FileShare fs){
  String portGroup=null;
  URI port=fs.getStoragePort();
  if (port == null) {
    _log.info("No storage port URI to retrieve svm name");
  }
 else {
    StoragePort stPort=_dbClient.queryObject(StoragePort.class,port);
    if (stPort != null) {
      URI haDomainUri=stPort.getStorageHADomain();
      if (haDomainUri == null) {
        _log.info("No Port Group URI for port {}",port);
      }
 else {
        StorageHADomain haDomain=_dbClient.queryObject(StorageHADomain.class,haDomainUri);
        if (haDomain != null && haDomain.getVirtual() == true) {
          portGroup=stPort.getPortGroup();
          _log.debug("using port {} and svm {}",stPort.getPortNetworkId(),portGroup);
        }
      }
    }
  }
  return portGroup;
}

private String findSVMName ( FileShare fs ) { String portGroup = null ; URI port = fs . getStoragePort ( ) ; if ( port == null ) { _log . info ( "No storage port URI to retrieve svm name" ) ; } else { StoragePort stPort = _dbClient . queryObject ( StoragePort . class , port ) ; if ( stPort != null ) { URI haDomainUri = stPort . getStorageHADomain ( ) ; if ( haDomainUri == null ) { _log . info ( "No Port Group URI for port {}" , port ) ; } else { StorageHADomain haDomain = _dbClient . queryObject ( StorageHADomain . class , haDomainUri ) ; if ( haDomain != null && haDomain . getVirtual ( ) == true ) { portGroup = stPort . getPortGroup ( ) ; _log . debug ( "using port {} and svm {}" , stPort . getPortNetworkId ( ) , portGroup ) ; } } } } return portGroup ; }
return the svm name associated with the file system . if a svm is not associated with this file system , then it will return null .
