Portfolio regulation of life insurance companies and pension funds