if (hasHeader) {
// read header from file
processHeader(fileContents, content);
}
// then read engine specific headers
engine.processHeader(context);
if (config.getString(Keys.DEFAULT_STATUS) != null) {
// default status has been set
if (content.get("status") == null) {
// file hasn't got status so use default