Fixed nasty bug with autoCommit status
Whitespace, and java6 compatibility.
Safer cleanUserprofile method, whitespace.