public static String generateNativeGuid(DbClient dbClient,Snapshot snapshot) throws IOException {
  FileShare fs=dbClient.queryObject(FileShare.class,snapshot.getParent());
  StorageSystem device=dbClient.queryObject(StorageSystem.class,fs.getStorageDevice());
  return String.format("%s+%s+" + SNAPSHOT + "+%s",_deviceTypeMap.get(device.getSystemType()),device.getSerialNumber(),snapshot.getNativeId());
}

public static String generateNativeGuid ( DbClient dbClient , Snapshot snapshot ) throws IOException { FileShare fs = dbClient . queryObject ( FileShare . class , snapshot . getParent ( ) ) ; StorageSystem device = dbClient . queryObject ( StorageSystem . class , fs . getStorageDevice ( ) ) ; return String . format ( "%s+%s+" + SNAPSHOT + "+%s" , _deviceTypeMap . get ( device . getSystemType ( ) ) , device . getSerialNumber ( ) , snapshot . getNativeId ( ) ) ; }
generates the format storagesystem + serialnumber + snapshot + nativeid native guid for snapshot objects
