final String text = document.get();
final String scannerName = module.getScannerName();
final InternalScanner internalScanner = (InternalScanner) ErlangEngine
.getInstance().getSimpleScannerService();
final OtpErlangObject checkAll = internalScanner.checkAll(scannerName, text,
true);
String s;
if (checkAll instanceof OtpErlangTuple) {
final OtpErlangTuple t = (OtpErlangTuple) checkAll;
s = Util.stringValue(t.elementAt(0));
final OtpErlangObject o1 = t.elementAt(1);
final OtpErlangObject o2 = t.elementAt(2);
dumpText(o1.toString(), "/tmp/scannerTokens.txt");
dumpText(o2.toString(), "/tmp/rescanTokens.txt");
} else {
s = Util.stringValue(checkAll);
}
ErlLogger.info("%s", s);
if (module != null) {