Debug dump of fileShadow on error.
Moved the generateQuery call into the initializeShadow method.