Added support for applying custom constraints which are not being implemented at domain level or CO is not inheriting from domain.