public void compile(int NumErrorsToReport, PrintStream err) {
try {
IRSession session = new RSession(ruleSet);
Compiler compiler = new Compiler(session);
dtcompiler = new DTCompiler(compiler);
InputStream inDTStream = new FileInputStream(ruleSet.getFilepath()+"/"+UDTFilename);
OutputStream outDTStream = new FileOutputStream(ruleSet.getFilepath()+"/"+ruleSet.getDT_XMLName());
dtcompiler.compile(inDTStream, outDTStream);