private CCatalogConfiguration getConfiguration() {
    if (configuration != null) {
      return configuration;
    }

    configuration = new CCatalogConfiguration();
    configuration.setVersion(CCatalogConfiguration.MODEL_VERSION);

    configuration =
        cfgLoader.load(
            configuration,
            CCatalogConfiguration.MODEL_VERSION,
            configurationFile,
            lock,
            new ConfigurationReader<CCatalogConfiguration>() {
              public CCatalogConfiguration read(Reader fr)
                  throws IOException, XmlPullParserException {
                return new NexusOnboardingCatalogsXpp3Reader().read(fr);
              }
            },
            validator,
            null);

    save();

    return configuration;
  }
 public void save() {
   cfgLoader.save(
       getConfiguration(),
       configurationFile,
       new ConfigurationWritter<CCatalogConfiguration>() {
         public void write(Writer fr, CCatalogConfiguration configuration) throws IOException {
           new NexusOnboardingCatalogsXpp3Writer().write(fr, configuration);
         }
       },
       lock);
 }