Property prop = source.findProperty(name);
if (propertyName.equals(name)) {
if (pattern == null) {
// If there is no pattern, then check presence/absence of the property.
if ((prop == null) ^ skipOnMatch) {
throw new SkippedDocumentException("Skipping document based upon "
+ ((prop == null) ? "absence" : "presence") + " of property "
+ propertyName);
}
} else if (prop != null) {
Set<String> propNames = source.getPropertyNames();