try {
Socket s = new Socket(options.getCompileHost(), options.getCompilePort());
logger.log(TreeLogger.DEBUG, "Socket opened");
ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());
ObjectInputStream in = new StringInterningObjectInputStream(s.getInputStream());
// Write my cookie
out.writeUTF(options.getCookie());
out.flush();
// Read the File that contains the serialized UnifiedAst
File astFile = (File) in.readObject();
ObjectInputStream astIn = new StringInterningObjectInputStream(new FileInputStream(
astFile));
UnifiedAst ast = (UnifiedAst) astIn.readObject();
ast.prepare();
logger.log(TreeLogger.SPAM, "Created new UnifiedAst instance");
// Report on the amount of memory we think we're using
long estimatedMemory = Runtime.getRuntime().totalMemory()