List fileNames = new ListSerializer(
Serializers.STRING_SERIALIZER, "file").readList(elem);
FunctionXMLParser parser = new FunctionXMLParser();
BasicTaskCollection tasks = new BasicTaskCollection();
for (int i=0; i<fileNames.size(); i++) {
String fileName = (String)fileNames.get(i);
List funcEntries = parser.parseFunctionEntries(new File(fileName));
for (int j=0; j<funcEntries.size(); j++) {
FunctionEntry funcEntry = (FunctionEntry)funcEntries.get(j);
tasks.add(funcEntry.createTaskEntry());
}
}
return new BasicTaskManager(tasks);
}