} catch (IllegalArgumentException ex) {
throw new ServerDbException("Invalid source ID: " + sourceId, ex);
}
return lookupPasswordFromDeployedSource(guid);
} else if (targetId != null) {
TargetId guid = null;
try {
guid = new TargetId(targetId);
} catch (IllegalArgumentException ex) {
throw new ServerDbException("Invalid target ID: " + targetId, ex);
}
return lookupPasswordFromDeployedTarget(guid);
}