{
throw new InvalidSectionException("abicloud only suport single virtual system definition,"
+ " current OVF envelope defines a VirtualSystemCollection");
}
VirtualSystemType vsystem = (VirtualSystemType) contentType;
try
{
OVFEnvelopeUtils.getSection(vsystem, ProductSectionType.class);
}
catch (SectionNotPresentException e)
{
String vsystemName =
vsystem.getName() != null && vsystem.getName().getValue() != null ? vsystem
.getName().getValue() : vsystem.getId();
MsgType prod = new MsgType();
prod.setValue(vsystemName);
ProductSectionType product = new ProductSectionType();
product.setInfo(vsystem.getInfo());
product.setProduct(prod);
try
{
OVFEnvelopeUtils.addSection(vsystem, product);