public string ResolveUser(string userName, string IMUserName)
{
if (userName.ToLower() == "myself")
{
userName = IMUserToIssueTrackerUser(IMUserName);
if (String.IsNullOrEmpty(userName))
{
throw new ArgumentException(String.Format("Unable to map skype user name '{0}' to jira user name. Check configuration file.", IMUserName));
}
}
else
{
string mappedUser = UserNameForAlias(userName);
if (!String.IsNullOrEmpty(mappedUser)) return mappedUser;
}
return userName;
}