Remove unused method, update licence.
Add conditional lowercasing of user name.
Correct usage of setting in Spring beans.