logMessage(Logger.WARNING,Logger.DB_WRITE, "Calling updateAssetPrototype.");
  protected boolean updateAssetPrototype(Statement s, Prototype p){    boolean ret=false;    StringBuffer sb=new StringBuffer();      logMessage(Logger.WARNING,Logger.DB_WRITE, "Calling updateAssetPrototype.");    try{      sb.append("INSERT INTO ");      sb.append(getTableName(ASSET_PROTOTYPE_TABLE));      sb.append(" (");      sb.append(COL_PROTOTYPEID);sb.append(",");      sb.append(COL_PARENT_PROTOTYPEID);sb.append(",");      sb.append(COL_ASSET_CLASS);sb.append(",");      sb.append(COL_ASSET_TYPE);sb.append(",");      sb.append(COL_WEIGHT);sb.append(",");      sb.append(COL_WIDTH);sb.append(",");      sb.append(COL_HEIGHT);sb.append(",");      sb.append(COL_DEPTH);sb.append(",");      sb.append(COL_ALP_TYPEID);sb.append(",");      sb.append(COL_ALP_NOMENCLATURE);sb.append(",");      sb.append(COL_IS_LOW_FIDELITY);      sb.append(") VALUES('");      sb.append(p.UID);sb.append("',");      sb.append(((p.parentUID==null||p.parentUID.equals(""))?		 "NULL,":		 ("'"+p.parentUID+"',")));//Could be NULL      sb.append(Integer.toString(pspToDBAssetClass(p.assetClass)));      sb.append(",");      sb.append(Integer.toString(pspToDBAssetType(p.assetType)));      sb.append(",");      sb.append(dbConfig.getDBDouble(p.weight));sb.append(",");      sb.append(dbConfig.getDBDouble(p.width));sb.append(",");      sb.append(dbConfig.getDBDouble(p.height));sb.append(",");      sb.append(dbConfig.getDBDouble(p.depth));sb.append(",'");      sb.append(p.alpTypeID);sb.append("','");      sb.append(p.nomenclature.replace('\'','_'));sb.append("','");      sb.append((p.isLowFidelity ? "true" : "false"));sb.append("')");      ret=(s.executeUpdate(sb.toString())==1);    }catch(SQLException e){	  String message1 = "Could not update table("+getTableName(ASSET_PROTOTYPE_TABLE)+")"+ 		"["+e.getSQLState()+"]<br>sql was : " + sb;      if(!dbConfig.getUniqueViolatedErrorCode().equals(e.getSQLState())){		haltForError(Logger.DB_WRITE, message1, e);		return false;      }else	return true;    }catch(Exception e){      String message1 = "Could not update table("+getTableName(ASSET_PROTOTYPE_TABLE)+")"+ 	"<br>sql was : " + sb + "<br>Exception was " + e;      System.err.println ("Exception was " + e);      e.printStackTrace ();      logMessage(Logger.WARNING,Logger.DB_WRITE,message1);      return false;    }    return ret;  }