Avoided infinite loop.
Fixed bug: character set was overwritten.
Refactor mysql collection type
Added validateInputValueNotNull method into Utils
Updated scala test as collection type refactored.