{
UserProfile profile = userManager.getUserProfile(userName);
return profile != null ? profile.getFullName() : userName;
}
};
productAccessor.sendEmail(new EmailOptions().toUsername(pluginAuthor).subjectTemplate("email/forked-subject.vm").bodyTemplate("email/forked-body.vm").context(new HashMap<String, Object>()
{{
put("plugin", extension);
put("userResolver", resolver);
put("forkedPlugin", extensionManager.getExtension(forkedPluginKey));
put("forkerFullName", userFullName);