if (bundleName.compareTo(stopHere) == 0) return null; else { int last = bundleName.lastIndexOf('_');
}  if (bundleName.equals(stopHere)) return result; else { int last = bundleName.lastIndexOf('_');
  private static final ResourceBundle trySomeGetBundle (String bundleName,							String stopHere)    {      Class rbc;      while (true)	{	  try 	    {	      rbc = Class.forName(bundleName);	      try 		{		  return (ResourceBundle) rbc.newInstance();		}	      catch (IllegalAccessException ex)		{		  // Fall through		}	      catch (InstantiationException ex)		{		  // Fall through		}	      return null;	    }	  catch (ClassNotFoundException ex)	    {	      if (bundleName.compareTo(stopHere) == 0)		return null;	      else		{		  int last = bundleName.lastIndexOf('_');		  		  // No more underscores?		  if (last == -1)		    return null;		  		  // Loop around, testing this new shorter name.		  bundleName = bundleName.substring(0, last);		}	    }	}    }