private boolean includeDocument(ItemDocument itemDocument) {
		for (StatementGroup sg : itemDocument.getStatementGroups()) {
			// "P19" is "place of birth" on Wikidata
			if (!"P19".equals(sg.getProperty().getId())) {
				continue;
			}
			for (Statement s : sg) {
				if (s.getMainSnak() instanceof ValueSnak) {
					Value v = s.getValue();
					// "Q1731" is "Dresden" on Wikidata
					if (v instanceof ItemIdValue
							&& "Q1731".equals(((ItemIdValue) v).getId())) {
						return true;
					}
				}
			}
		}
		return false;
	}
private boolean includeDocument ( ItemDocument itemDocument ) { for ( StatementGroup sg : itemDocument . getStatementGroups ( ) ) { if ( ! "P19" . equals ( sg . getProperty ( ) . getId ( ) ) ) { continue ; } for ( Statement s : sg ) { if ( s . getMainSnak ( ) instanceof ValueSnak ) { Value v = s . getValue ( ) ; if ( v instanceof ItemIdValue && "Q1731" . equals ( ( ( ItemIdValue ) v ) . getId ( ) ) ) { return true ; } } } } return false ; }
Returns true if the given document should be included in the
serialization.

@param itemDocument
the document to check
@return true if the document should be serialized