else throw new SuiteReaderException("Unknown instruction: " + firstWord);
}
private List<Node<?>> importSuite(String path, Line line) throws FileNotFoundException, IOException {
if (path.isEmpty()) {
throw new SyntaxException(line, "No path specified for importing");
}
String fullChildPath = contextPath + File.separator + path;
String childContextPath = new File(fullChildPath).getParent();
GalenSuiteLineProcessor childProcessor = new GalenSuiteLineProcessor(properties, childContextPath);
File file = new File(fullChildPath);
if (!file.exists()) {
throw new SyntaxException(line, "File doesn't exist: " + file.getAbsolutePath());
}
childProcessor.readLines(new FileInputStream(file));
return childProcessor.rootNode.getChildNodes();
}