name.replace(start, name.lastIndexOf("OrgRT"), "Org"); className.replace(className.indexOf("OrgRT"), className.lastIndexOf("OrgRT"), "org");
name.delete(start, start+2); start = className.indexOf("RT"); className.delete(start, start+2);
  protected void addPlugins() {    ContainerBase container = new ContainerBase("Plugins");    container.initProperties();    addChild(container);    ComponentDescription[] desc =       ComponentConnector.parseFile(filename);    if (desc == null) {      if (log.isWarnEnabled()) {	log.warn("No data found in file " + filename);      }      return;    }    for (int i=0; i < desc.length; i++) {      StringBuffer name = new StringBuffer(desc[i].getName());      StringBuffer className = new StringBuffer(desc[i].getClassname());      String insertionPoint = desc[i].getInsertionPoint();//       if(log.isDebugEnabled()) {//         log.debug("Insertion Point: " + insertionPoint);//       }      if(insertionPoint.endsWith("Plugin")) {        int start = 0;        if((start = name.indexOf("OrgRTData")) != -1) {          name.replace(start, name.lastIndexOf("OrgRT"), "Org");          className.replace(className.indexOf("OrgRT"), className.lastIndexOf("OrgRT"), "org");        }        int index = name.lastIndexOf(".");        if (index != -1)          name.delete(0,index+1);        PluginBase plugin =           new PluginBase(name.substring(0), className.substring(0));        plugin.initProperties();        Iterator iter = ComponentConnector.getPluginProps(desc[i]);        while(iter.hasNext())           plugin.addParameter((String)iter.next());        container.addChild(plugin);      }    }  }