Some work on validation.
Added provided/consumed resource domains to appropriate model objects.
Added provided/consumed resource id reference validation.
Corrected the bug found by Antoine.
(Resource printing function used instead of repository printing function...)