}
protected Map<String, Resource> createIndexFromPaths(String rootURI,
String rootPath, String syntax, String includes) {
Map<String, Resource> index = new HashMap<String, Resource>();
List<String> paths = new StoryFinder().findPaths(
codeLocationFromPath(rootPath), includes, EMPTY);
for (String path : paths) {
addPath(rootURI, rootPath, fullPath(rootPath, path), syntax, index);
}
return index;