public GoConfigHolder loadConfigHolder(final String content, Callback callback) throws Exception {
        CruiseConfig configForEdit;
        CruiseConfig config;
        LOGGER.debug("[Config Save] Loading config holder");
        configForEdit = deserializeConfig(content);
        if (callback != null) callback.call(configForEdit);
        config = preprocessAndValidate(configForEdit);

        return new GoConfigHolder(config, configForEdit);
    }
@Test
    void shouldNotLoadTasksWithOnCancelTaskNested() {

        assertThatThrownBy(() -> xmlLoader.loadConfigHolder(TASKS_WITH_ON_CANCEL_NESTED))
            .as("Should not allow nesting of 'oncancel' within task inside oncancel")
            .isInstanceOf(GoConfigInvalidException.class)
            .hasMessage("Cannot nest 'oncancel' within a cancel task");
    }