STS-2939: added a workaround for the case of the XML file being identified as part of the wrong project