if (componentType.equals(ComponentData.NODEBINDER)) { return sqlQuote(componentType + "|" + data.getClassName()); } if (componentType.equals(ComponentData.AGENTBINDER)) { return sqlQuote(componentType + "|" + data.getClassName()); } if (componentType.equals(ComponentData.AGENT)) { String agentName = data.getName(); return sqlQuote(agentName); } if (componentType.equals(ComponentData.NODE)) { String nodeName = data.getName(); return sqlQuote(nodeName); } if (componentType.equals(ComponentData.HOST)) { String hostName = data.getName(); return sqlQuote(hostName); } if (componentType.equals(ComponentData.SOCIETY)) { String societyName = data.getName(); return sqlQuote(componentType + "|" + societyName); }   return sqlQuote(componentType + "|" + data.getClassName());
  private String getComponentLibId(ComponentData data) {    if (data == null) return sqlQuote(null);    String componentType = data.getType();    if (componentType.equals(ComponentData.PLUGIN)) {      return sqlQuote(componentType + "|" + data.getClassName());    }    if (componentType.equals(ComponentData.NODEBINDER)) {      return sqlQuote(componentType + "|" + data.getClassName());    }    if (componentType.equals(ComponentData.AGENTBINDER)) {      return sqlQuote(componentType + "|" + data.getClassName());    }    if (componentType.equals(ComponentData.AGENT)) {      String agentName = data.getName();      return sqlQuote(agentName);    }    if (componentType.equals(ComponentData.NODE)) {      String nodeName = data.getName();      return sqlQuote(nodeName);    }    if (componentType.equals(ComponentData.HOST)) {      String hostName = data.getName();      return sqlQuote(hostName);    }    if (componentType.equals(ComponentData.SOCIETY)) {      String societyName = data.getName();      return sqlQuote(componentType + "|" + societyName);    }    //ComponentData parent = data.getParent();    //    return sqlQuote(componentType + "|" + getFullName(data));    return sqlQuote(componentType + "|" + data.getClassName());  }