Add confinmentContextWithParent helper