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 shouldNotAllowEmptyViewForPerforce() {
        String p4XML = Objects.requireNonNull(this.getClass().getResource("/data/p4-cruise-config-empty-view.xml")).getFile();
        assertThatThrownBy(() -> xmlLoader.loadConfigHolder(loadWithMigration(p4XML)))
            .as("Should not accept p4 section with empty view.")
            .hasMessageContaining("P4 view cannot be empty.");
    }