Added validation for frameworkId.