if (componentType.equals(ComponentData.PLUGIN)) {
if (componentType.equals(ComponentData.NODE) || componentType.equals(ComponentData.HOST) || componentType.equals(ComponentData.SOCIETY) || componentType.equals(ComponentData.AGENT)) { return sqlQuote(getComponentAlibId(data)); } else {
  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());  }