/**
* Get current user.
* @return Name of the user
*/
protected final User user() {
final Identity identity = this.auth().identity();
User user;
if (identity.equals(Identity.ANONYMOUS)) {
user = User.ANONYMOUS;
} else {
user = new RestUser(identity);
}
return user;