Removing dependency on GUI classes from IMCJava.