ObjectInputStream ois = null;
try {
ois = new ObjectInputStream(new FileInputStream(pn));
ProtoNetwork network = new ProtoNetwork();
network.readExternal(ois);
return network;
} catch (FileNotFoundException e) {
final String msg = "Cannot find binary proto-network for path";
throw new ProtoNetworkError(pn.getAbsolutePath(), msg, e);
} catch (IOException e) {