DomainBindingSite bindingSite = (DomainBindingSite) getBindingSite(); if (bindingSite == null) { throw new RuntimeException( "Binding site for the domain has not be set.\n" + "Unable to initialize domain Factory without a binding site."); }  LDMServesPlugin ldm = bindingSite.getClusterServesLogicProvider().getLDM();
LDMServesPlugin ldm = ldmService.getLDM();
  protected void loadFactory() {    DomainBindingSite bindingSite = (DomainBindingSite) getBindingSite();    if (bindingSite == null) {      throw new RuntimeException(          "Binding site for the domain has not be set.\n" +          "Unable to initialize domain Factory without a binding site.");    }     LDMServesPlugin ldm =       bindingSite.getClusterServesLogicProvider().getLDM();    PlanningFactory ldmf = (PlanningFactory) ldm.getFactory("planning");    if (ldmf == null) {      throw new RuntimeException("Missing \"planning\" factory!");    }    // ensure GLM aspect types are reserved in the AspectValue registry    AlpineAspectType.init();    Factory f = new GLMFactory();    ldmf.addAssetFactory(new AssetFactory());    ldmf.addPropertyGroupFactory(new PropertyGroupFactory());    setFactory(f);  }