if(ormSession!=null){
// flush orm session
try {
ORMEngine engine=ormSession.getEngine();
ORMConfiguration config=engine.getConfiguration(this);
if(config==null || (config.flushAtRequestEnd() && config.autoManageSession())){
ormSession.flush(this);
//ormSession.close(this);
//print.err("2orm flush:"+Thread.currentThread().getId());
}
ormSession.close(this);