String[] parts = betterClassName.split("[.]"); baseClassName = parts[parts.length-1];
try { JavaClass supers[] = Repository.getSuperClasses(obj); for(int i = 0; i < supers.length; i++) visit(supers[i]); } catch (ClassNotFoundException e) {  }
  public void visit(JavaClass obj)     {	super.visit(obj);	String[] parts = betterClassName.split("[.]");        baseClassName = parts[parts.length-1];	}