- FeatureConfigSnapshotHolder f;
- try {
- f = new FeatureConfigSnapshotHolder(h,this);
- snapShotHolders.add(f);
- } catch (JAXBException e) {
- LOG.debug("{} is not a config subsystem config file",h.getFileInfo().getFinalname());
+ final Optional<FeatureConfigSnapshotHolder> featureConfigSnapshotHolder = getFeatureConfigSnapshotHolder(h.getFileInfo());
+ if(featureConfigSnapshotHolder.isPresent()) {
+ snapShotHolders.add(featureConfigSnapshotHolder.get());