code: private int getPid() {
  
  	PageContext pc = ThreadLocalPageContext.get();
  	if (pc == null) {
  	    pc = CFMLEngineFactory.getInstance().getThreadPageContext();
  	    if (pc == null) throw new RuntimeException("cannot get pid for current thread");
  	}
  	return pc.getId();
      }
docs: private static int pidc=0;