if (ne!=null && (ne instanceof Link))
{
//if we found a mapping, get out name it is mapped to in the environment
nameInEnvironment = (String)((Link)ne).getObjectToBind();
Link l = (Link)ne;
}
//try finding that mapped name in the webapp's environment first
scope = getWebAppContext();
bound = NamingEntryUtil.bindToENC(scope, name, nameInEnvironment);