For me, it would make sense to create a ```username``` property from ```credential.getUsername()``` if we use it more than once. And this remark is true for all handlers.

Don't you think?