Code cleanup
1. Remove trailing whitespaces.
2. Add semicolon after statement.

BMS-129

Reviewer: Aldrin Batac
Code cleanup
1. Removed useless import
2. Corrected use of generics
3. Remove unused local variables.
Fixed failing test testCopyMeasurementValueWithCustomCategoricalValue

BMS-129

Reviewer: Aldrin Batac
Code Cleanup
1. Removed useless imports
2. Use constants instead of duplicated string literals
3. Simplify complex methods and blocks by creating and calling reusable methods
4. Removed commented-out codes
5. Use of logger instead of printStackTrace

BMS-129

Reviewer: Aldrin Batac