Temporarily added some functions from douladata because of issues with FormInstance extensions in development mode.