Replacing Scala implementation of models.User with Java implementation.