Eliminate some Warnings during compilation

because of
- unchecked or unsafe operations
- dead code (unused private method)
- [WARNING] The following options were not recognized by any processor: '[generatedTranslationFilesPath]'

The STATISTICS_ENABLED.resolveModelAttribute(context, model) call should remain as it serves to validate that any expression in the model can be resolved to a correct value. The .asBoolean() call and the assignment of the result to a variable aren't necessary.