DomainBindingSite domainBS = (DomainBindingSite) getBindingSite(); RootPlan rootplan = (RootPlan) domainBS.getXPlanForDomain("root");
RootPlan rootplan = (RootPlan) getXPlanForDomain("root");
  protected void loadLPs() {    DomainBindingSite domainBS = (DomainBindingSite) getBindingSite();    RootPlan rootplan = (RootPlan) domainBS.getXPlanForDomain("root");    if (rootplan == null) {      throw new RuntimeException("Missing \"root\" plan!");    }    PlanningFactory ldmf = (PlanningFactory)       domainService.getFactory("planning");    if (ldmf == null) {      throw new RuntimeException("Missing \"planning\" factory!");    }    GLMFactory glmFactory = (GLMFactory)       domainService.getFactory("glm");    addLogicProvider(new ReceiveTransferableLP(rootplan, ldmf));    addLogicProvider(new TransferableLP(rootplan, self, ldmf));    addLogicProvider(new DetailRequestLP(rootplan, self, glmFactory));    addLogicProvider(new OPlanWatcherLP(rootplan, ldmf));  }