private static void validateOvf(OvfFile ovfFile) throws UnsupportedDiskControllerException, InvalidOvfException {
  for (  OvfMetadata.VirtualDisk virtualDisk : ovfFile.getVirtualDisks()) {
    Device diskDevice=virtualDisk.getDiskDevice();
    Device diskController=diskDevice.getControllerDevice();
    if (diskController.getDeviceType() != Device.DeviceType.SCSIController) {
      throw new UnsupportedDiskControllerException(String.format("Unsupported disk controller: %s.",diskController.getName()));
    }
  }
}

private static void validateOvf ( OvfFile ovfFile ) throws UnsupportedDiskControllerException , InvalidOvfException { for ( OvfMetadata . VirtualDisk virtualDisk : ovfFile . getVirtualDisks ( ) ) { Device diskDevice = virtualDisk . getDiskDevice ( ) ; Device diskController = diskDevice . getControllerDevice ( ) ; if ( diskController . getDeviceType ( ) != Device . DeviceType . SCSIController ) { throw new UnsupportedDiskControllerException ( String . format ( "Unsupported disk controller: %s." , diskController . getName ( ) ) ) ; } } }
validate an ovf . currently the validation is that : the disks use a scsi controller .
