public byte[] compile(ConfigImpl config,PageSource source, TagLib[] tld, FunctionLib[] fld,
Resource classRootDir, String className) throws TemplateException, IOException {
//synchronized(source){
//print.out("src:"+source.getDisplayPath());
//print.dumpStack();
Resource classFile=classRootDir.getRealResource(className+".class");
Resource classFileDirectory=classFile.getParentResource();
byte[] barr = null;
Page page = null;
if(!classFileDirectory.exists()) classFileDirectory.mkdirs();
try {
page = cfmlTransformer.transform(config,source,tld,fld);
barr = page.execute(source,classFile);
IOUtil.copy(new ByteArrayInputStream(barr), classFile,true);