protected RepositoryConfigurationBase(RepoDescriptor repoDescriptor, String type) {
   this.key = repoDescriptor.getKey();
   this.type = type;
   String description = repoDescriptor.getDescription();
   if (StringUtils.isNotBlank(description)) {
     setDescription(description);
   }
   String notes = repoDescriptor.getNotes();
   if (StringUtils.isNotBlank(notes)) {
     setNotes(notes);
   }
   String excludesPattern = repoDescriptor.getExcludesPattern();
   if (StringUtils.isNotBlank(excludesPattern)) {
     setExcludesPattern(excludesPattern);
   }
   String includesPattern = repoDescriptor.getIncludesPattern();
   if (StringUtils.isNotBlank(includesPattern)) {
     setIncludesPattern(includesPattern);
   }
   RepoLayout repoLayout = repoDescriptor.getRepoLayout();
   if (repoLayout != null) {
     setRepoLayoutRef(repoLayout.getName());
   }
   setEnableNuGetSupport(repoDescriptor.isEnableNuGetSupport());
 }
 private void addSharedBasicConfigModel(
     BasicRepositoryConfigModel basic, RepoDescriptor descriptor) {
   basic.setPublicDescription(descriptor.getDescription());
   basic.setInternalDescription(descriptor.getNotes());
   basic.setIncludesPattern(descriptor.getIncludesPattern());
   basic.setExcludesPattern(descriptor.getExcludesPattern());
   Optional.ofNullable(descriptor.getRepoLayout())
       .ifPresent(repoLayout -> basic.setLayout(repoLayout.getName()));
 }