XSPContext context = (XSPContext) resolveVariable("context");
profile.replaceItemValue("PhotoURL",
context.getUrl().getScheme() + "://" + context.getUrl().getHost() + '/' + database.getFilePath() +
"/api.xsp?method=getmypic&id=" +
UNIDEncoder.encode(session.createName(profile.getItemValueString("User")).getCanonical()) + "&size=" +
this.DefaultSize + "&format=" + this.DefaultFormat);
if (this.StoreProfilesInNab == "Yes") {
// If we're synching w/ the NAB, Email Address should not be pushed to nab -- it should only get pulled
profile.replaceItemValue("InternetAddress", nabEntry.getItemValueString("InternetAddress"));