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

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