add 'pattern' attr to service resource