Added new method to Content repository to find by template

Could you please change the exception message to fit the method?