code: protected boolean classNamesMatch(final String name1, final String name2) {
  		if (name1 == null || name2 == null) {
  			return false;
  		}
  		int index1 = name1.lastIndexOf('.');
  		int index2 = name2.lastIndexOf('.');
  		if (index1 == -1 && index2 != -1) {
  			return Util.equals(name1, name2.substring(index2 + 1));
  		} else if (index1 != -1 && index2 == -1) {
  			return Util.equals(name1.substring(index1 + 1), name2);
  		} else {
  			return Util.equals(name1, name2);
  		}
  	}
docs: Tests two class names for equality, taking partical class names (no package given) into account.
  
  @param name1 the first class name to compare.
  @param name2 the second class name to compare.
  @return true if the class names match, false otherwise.