}
private static EnvelopeType fixDiskFormtatUriAndFileSizes(final EnvelopeType envelope) throws SectionNotPresentException, InvalidSectionException
{
DiskSectionType diskSection = OVFEnvelopeUtils.getSection(envelope, DiskSectionType.class);
if (diskSection.getDisk().size() != 1)
{
final String message =
"abicloud only supports single disk definition on the OVF, the current envelope contains multiple disk";
throw new InvalidSectionException(message);
}
VirtualDiskDescType vdisk = diskSection.getDisk().get(0);
String formatUri = vdisk.getFormat();
if (formatUri == null || formatUri.isEmpty())
{