PIM-3371 : add support for class constraint in metadata factory, add not
supported exceptions