NN-10534: Added methods: handleServerResponse, updateDefinition, setVariables. Minor changes.