reworked Java class (file) name calculation