this.getClass() is available in Java as well -- out of curiosity, why did you avoid it for the java files?