CMS-4277 Implement rest service for listing principals - IllegalArgument exception removed