Changed attribute User.directory to calculated, User.getDirectory()