JERSEY-2302: MBean statistics cannot register resources with templates

Change-Id: I824707b6ef0659b8d8d358b7e4d39c0170b6d7b0
Merge "JERSEY-2302: MBean statistics cannot register resources with templates"