private Element buildDocElement(Metadata metadata) {
String[] metadataNames = metadata.names();
Element elem = new Element (FitsMetadataValues.DOCUMENT, fitsNS);
boolean titleReported = false;
boolean authorReported = false;
<BUG>boolean pageCountReported = false;
for (String name : metadataNames) {</BUG>
TikaProperty prop = propertyNameMap.get(name);
if (prop == null) {
continue;

private Element buildDocElement(Metadata metadata) {
String[] metadataNames = metadata.names();
Element elem = new Element (FitsMetadataValues.DOCUMENT, fitsNS);
boolean titleReported = false;
boolean authorReported = false;
boolean pageCountReported = false;
boolean rightsReported = false;
for (String name : metadataNames) {
TikaProperty prop = propertyNameMap.get(name);
if (prop == null) {
continue;
