// License description
String[] licenseDescription = c.licenseDescription();
if (licenseDescription != null)
{
if (md.getLicense() == null)
md.setLicense(new LicenseMetaData());
if (md.getLicense().getDescriptions() == null)
{
DescriptionsImpl descsImpl = new DescriptionsImpl();
md.getLicense().setDescriptions(descsImpl);
}
for (String desc : licenseDescription)
{
DescriptionImpl descImpl = new DescriptionImpl();
descImpl.setDescription(desc);
((DescriptionsImpl)md.getLicense().getDescriptions()).add(descImpl);
}
}
// License required
boolean licenseRequired = c.licenseRequired();
if (md.getLicense() == null)
md.setLicense(new LicenseMetaData());
md.getLicense().setRequired(licenseRequired);
// Reauthentication support
boolean reauthenticationSupport = c.reauthenticationSupport();
if (md.getRa() != null && md.getRa().getOutboundRa() != null)