public void init(GatewayEnginePro engine,String id, String cfcPath, Map config) throws GatewayException {
this.engine=GatewayProFactory.toGatewayEngineImpl(engine);
this.id=id;
//requestURI=engine.toRequestURI(cfcPath);
Struct args=new StructImpl(StructImpl.TYPE_LINKED);
args.setEL("id", id);
args.setEL("config", Caster.toStruct(config,null,false));
if(!StringUtil.isEmpty(cfcPath)){
try {
args.setEL("listener", this.engine.getComponent(cfcPath,id));
} catch (PageException e) {
engine.log(this,GatewayEnginePro.LOGLEVEL_ERROR, e.getMessage());
}
}