sb.append(contrainedArtifact.toString());
sb.append(" ");
}
writer.writeAttribute(CONSTRAINS, sb.toString());
} else {
throw new ContributionWriteException("Contrains attribute missing from " +
"Policy Intent Definition" + policyIntent.getName());
}
}
if ( policyIntent.getDescription() != null && policyIntent.getDescription().length() > 0) {
writer.writeStartElement(PolicyConstants.SCA10_NS, DESCRIPTION);
writer.writeCData(policyIntent.getDescription());
writer.writeEndElement();
}
writer.writeEndElement();
} catch (XMLStreamException e) {
throw new ContributionWriteException(e);
}
}