Implement setParentResourceId for AbstractForm.