class SpecificationServiceImpl implements SpecificationService {

    @Override
    public Specification findByName(String specificationName) {
        return specificationRepo
            .findByName(specificationName)
            .orElseThrow(() -> new NotFoundException(ErrorMessage.SPECIFICATION_NOT_FOUND_BY_NAME));
    }

}