add deprecated inspection warning for service classes #375