code: public BDBRecord adapt(CaptureSearchResult result) {
  		StringBuilder keySB = new StringBuilder(40);
  		StringBuilder valSB = new StringBuilder(100);
  		
  		String origUrl = result.getOriginalUrl();
  		String urlKey;
  		try {
  			urlKey = canonicalizer.urlStringToKey(origUrl);
  		} catch (URIException e) {
  //			e.printStackTrace();
  			LOGGER.warning("FAILED canonicalize(" + origUrl +")");
  			urlKey = origUrl;
  		}
  		keySB.append(urlKey);
  		keySB.append(DELIMITER);
  		keySB.append(result.getCaptureTimestamp());
  		keySB.append(DELIMITER);
  		keySB.append(result.getOffset());
  		keySB.append(DELIMITER);
  		keySB.append(result.getFile());
  		
  
  		valSB.append(result.getOriginalUrl());
  		valSB.append(DELIMITER);
  		valSB.append(result.getMimeType());
  		valSB.append(DELIMITER);
  		valSB.append(result.getHttpCode());
  		valSB.append(DELIMITER);
  		valSB.append(result.getDigest());
  		valSB.append(DELIMITER);
  		valSB.append(result.getRedirectUrl());
  
  		key.setData(BDBRecordSet.stringToBytes(keySB.toString()));
  		value.setData(BDBRecordSet.stringToBytes(valSB.toString()));
  
  		return record;
  	}
docs: /*
  (non-Javadoc)
  
  @see org.archive.wayback.util.Adapter#adapt(java.lang.Object)