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]'