CMS-4457 Implement REST method getPrincipalById.
Restrict key parameter to valid principal key pattern.