Code cleanup.
Fix hibernate warning.
Log settings.