if (cacheBehaviorsCacheBehaviorsitemsList != null && cacheBehaviorsCacheBehaviorsitemsList.size() > 0) {
int cacheBehaviorsCacheBehaviorsitemsListIndex = 1;
xmlWriter.startElement("Items");
for (CacheBehavior cacheBehaviorsCacheBehaviorsitemsListValue : cacheBehaviorsCacheBehaviorsitemsList) {
xmlWriter.startElement("CacheBehavior");
if (cacheBehaviorsCacheBehaviorsitemsListValue.getPathPattern() != null) {
xmlWriter.startElement("PathPattern").value(cacheBehaviorsCacheBehaviorsitemsListValue.getPathPattern()).endElement();
}
if (cacheBehaviorsCacheBehaviorsitemsListValue.getTargetOriginId() != null) {
xmlWriter.startElement("TargetOriginId").value(cacheBehaviorsCacheBehaviorsitemsListValue.getTargetOriginId()).endElement();