[java] getting only name of the class Class.getName()