code: private static MountConfig getMountConfig(MountOption[] mountOptions) {
          final MountConfig config = new MountConfig();
          for (MountOption option : mountOptions) {
              option.applyTo(config);
          }
          return config;
      }
docs: Creates a MountConfig and applies the provided mount options
  
  @param mountOptions options to use for mounting
  @return a MountConfig