}
}
private String fetchSchemaNameFromLoginName(String id) throws Exception, XPathExpressionException {
// TODO: Check manual connection string.
EntityType type = sourceOrTarget == SourceTarget.Source ? EntityType.Source : EntityType.Target;
File dataFile = projectRoot.subFolder("Data").subFolder(type.name()).getFile(id + ".xml");
Document dom = DomParser.parseFile(dataFile);
XPath xpath = XPathFactory.newInstance().newXPath();
NodeList nodes = (NodeList) xpath.evaluate("/Entity/Location/Data/Properties/Item[@key='login']", dom, XPathConstants.NODESET);
if (nodes.getLength() == 0) {
throw new Exception("The user name has not been defined for the source or target with ID " + id);