throw an exception if service is not declared properly
Merge branch 'verify-service-declaration'