while (propertyDefinitionIterator.hasNext()) {
PropertyDefinition propertyDefinition = propertyDefinitionIterator.next();
if (propertyDefinition instanceof PropertyDefinitionString) {
MarkingSet markingSet = ((PropertyDefinitionString) propertyDefinition).get_MarkingSet();
if (markingSet != null) {
logger.log(Level.INFO, "Document class has property associated with Markings set");
hasMarkings = true;
break;
}