@Override
public Map<String, Void> map(FileContent inputData) {
if (StdFileTypes.XML.equals(inputData.getFileType())) {
boolean isPropertiesXml = false;
try {
XmlFileHeader fileHeader = NanoXmlUtil.parseHeaderWithException(inputData.getFile());
isPropertiesXml = "properties".equals(fileHeader.getRootTagLocalName());
} catch (IOException ignore) {
}
if (!isPropertiesXml) {
return Collections.emptyMap(); // if not, nothing to map here
}