DEVIDM-94: Use of primitive data types in service methods is dangerous a...

...nd can lead to unexpected behaviour.