GuidToIdMapper mapper = new GuidToIdDbMapper(tranDbConnection);
Long id = mapper.getId(guid);
if (id != null) {
// No need to close srcTab in a finally block, since we are closing
// the connection itself explicitly
TargetsTab tgtTab = new TargetsTab(tranDbConnection);
TargetsTabRow row = tgtTab.query(id.intValue());
String encrypted = row.get_password();
if (encrypted != null) {
verifyAccess(guid);
return Crypto.decryptString(encrypted);
}