*/
private String getReferenceShortId(String domain, String url, String username)
throws IOException {
String shortId = addLongUrl(domain, url, username);
if (shortId == null) {
LongUrl longUrl = getLongUrl(url);
shortId = longUrl != null ? longUrl.getShortId() : null;
}
return shortId;
}