NXP-14472: format & cleanup; improved error logs
NXP-14472: Fix startup when setting nuxeo.force.generation to once