// Assembling records for each id
record = new HrRecord();
record.setHostUrl(rs.getString(2));
String protocolDef = rs.getString(3);
Protocol protocol = getRequestContext().getApplicationConfiguration()
.getProtocolFactories().parseProtocol(protocolDef);
try {
record.setProtocol(protocol);
} catch (IllegalArgumentException ex) {
record.setProtocol(new HarvestProtocolNone());
}
record.setName(rs.getString(4));
record.setUuid(rs.getString(5));
LOG
.info("Name = " + record.getName() + "protocol "
+ protocol.toString());
// Attempting to marshall db with ids that have been given
String id = Val.chkStr(rs.getString("ID"));
String idValue = Val.chkStr(idFields.get(id));
String docuuid = Val.chkStr(rs.getString("DOCUUID"));