public static Map loadConceptServiceSet(String path) throws IOException {
Map result = new HashMap();
BufferedReader reader = new BufferedReader(new FileReader(path));
String line;
String[] tokens;
ServiceConcept services;
SortedSet entries;
Iterator iter;
while ( (line = reader.readLine()) != null) {
line = line.trim();
line = line.substring(line.indexOf("(")+1,line.lastIndexOf(")"));
tokens = line.split(";;;");
services = new ServiceConcept();
entries = entriesFromString(tokens[1]);
iter = entries.iterator();
while (iter.hasNext())
services.addInput((ServiceEntry)iter.next());
entries = entriesFromString(tokens[2]);
iter = entries.iterator();
while (iter.hasNext())
services.addOutput((ServiceEntry)iter.next());
result.put(tokens[0],services);
}
reader.close();
return result;