Fixes #3313: record trust is now a user parameter.
Claims metadata are collected from the file system, not from the database.
codebase used to migrate to java8 the production system