Fix pmd warnings and rename session model class.