Program: 46191
Project: 46191
Buggy source:
protected Entity createAvatarEntities(WorldManager wm){
  PMatrix origin=new PMatrix();
  CellTransform transform=cell.getLocalTransform();
  origin.setTranslation(transform.getTranslation(null));
  origin.setRotation(transform.getRotation(null));
  WonderlandSession session=cell.getCellCache().getSession();
  ServerSessionManager manager=session.getSessionManager();
  String serverHostAndPort=manager.getServerNameAndPort();
  String baseURL="String_Node_Str" + serverHostAndPort + "String_Node_Str";
  URL avatarConfigURL=cell.getComponent(AvatarConfigComponent.class).getAvatarConfigURL();
  LoadingInfo.startedLoading(cell.getCellID(),username);
  try {
    if (avatarConfigURL == null) {
      if (avatarCharacter == null) {
        CharacterAttributes attributes=new MaleAvatarAttributes(username,false);
        attributes.setUseSimpleStaticModel(true,null);
        attributes.setBaseURL(baseURL);
        avatarCharacter=new WlAvatarCharacter(attributes,wm);
        URL url=new URL(baseURL + "String_Node_Str");
        ResourceLocator resourceLocator=new RelativeResourceLocator(url);
        ResourceLocatorTool.addThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
        Spatial placeHolder=(Spatial)BinaryImporter.getInstance().load(url);
        ResourceLocatorTool.removeThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
        avatarCharacter.getJScene().getExternalKidsRoot().attachChild(placeHolder);
      }
    }
 else {
      avatarCharacter=new WlAvatarCharacter(avatarConfigURL,wm,"String_Node_Str" + serverHostAndPort + "String_Node_Str");
    }
    avatarCharacter.getModelInst().getTransform().getLocalMatrix(true).set(origin);
    Node external=avatarCharacter.getJScene().getExternalKidsRoot();
    NameTagComponent nameTagComp=new NameTagComponent(cell,username,2);
    nameTag=nameTagComp.getNameTagNode();
    external.attachChild(nameTag);
    external.setModelBound(new BoundingSphere());
    external.updateModelBound();
  }
 catch (  Exception e) {
    String badURL=null;
    if (avatarConfigURL != null)     badURL=avatarConfigURL.toExternalForm();
    Logger.getLogger(AvatarImiJME.class.getName()).log(Level.SEVERE,"String_Node_Str" + badURL,e);
  }
 finally {
    LoadingInfo.finishedLoading(cell.getCellID(),username);
  }
  return avatarCharacter;
}

Fixed version (ground truth):
protected Entity createAvatarEntities(WorldManager wm){
  PMatrix origin=new PMatrix();
  CellTransform transform=cell.getLocalTransform();
  origin.setTranslation(transform.getTranslation(null));
  origin.setRotation(transform.getRotation(null));
  WonderlandSession session=cell.getCellCache().getSession();
  ServerSessionManager manager=session.getSessionManager();
  String serverHostAndPort=manager.getServerNameAndPort();
  String baseURL="String_Node_Str" + serverHostAndPort + "String_Node_Str";
  URL avatarConfigURL=cell.getComponent(AvatarConfigComponent.class).getAvatarConfigURL();
  LoadingInfo.startedLoading(cell.getCellID(),username);
  try {
    if (avatarConfigURL == null) {
      if (avatarCharacter == null) {
        CharacterAttributes attributes=new MaleAvatarAttributes(username,false);
        attributes.setUseSimpleStaticModel(true,null);
        attributes.setBaseURL(baseURL);
        avatarCharacter=new WlAvatarCharacter(attributes,wm);
        URL url=new URL(baseURL + "String_Node_Str");
        ResourceLocator resourceLocator=new RelativeResourceLocator(url);
        ResourceLocatorTool.addThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
        Spatial placeHolder=(Spatial)BinaryImporter.getInstance().load(url);
        ResourceLocatorTool.removeThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
        avatarCharacter.getJScene().getExternalKidsRoot().attachChild(placeHolder);
      }
    }
 else {
      avatarCharacter=new WlAvatarCharacter(avatarConfigURL,wm,"String_Node_Str" + serverHostAndPort + "String_Node_Str");
    }
    avatarCharacter.getModelInst().getTransform().getLocalMatrix(true).set(origin);
    Node external=avatarCharacter.getJScene().getExternalKidsRoot();
    ZBufferState zbuf=(ZBufferState)ClientContextJME.getWorldManager().getRenderManager().createRendererState(RenderState.RS_ZBUFFER);
    zbuf.setEnabled(true);
    zbuf.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);
    external.setRenderState(zbuf);
    NameTagComponent nameTagComp=new NameTagComponent(cell,username,2);
    nameTag=nameTagComp.getNameTagNode();
    external.attachChild(nameTag);
    external.setModelBound(new BoundingSphere());
    external.updateModelBound();
  }
 catch (  Exception e) {
    String badURL=null;
    if (avatarConfigURL != null)     badURL=avatarConfigURL.toExternalForm();
    Logger.getLogger(AvatarImiJME.class.getName()).log(Level.SEVERE,"String_Node_Str" + badURL,e);
  }
 finally {
    LoadingInfo.finishedLoading(cell.getCellID(),username);
  }
  return avatarCharacter;
}