code: public static <T extends Serializable> FileSystemStateStorageHelper<T> createFileSystemStateStorage(
  			Configuration configuration,
  			String prefix) throws IOException {
  
  		String rootPath = configuration.getValue(HighAvailabilityOptions.HA_STORAGE_PATH);
  
  		if (rootPath == null || StringUtils.isBlank(rootPath)) {
  			throw new IllegalConfigurationException("Missing high-availability storage path for metadata." +
  					" Specify via configuration key '" + HighAvailabilityOptions.HA_STORAGE_PATH + "'.");
  		} else {
  			return new FileSystemStateStorageHelper<T>(rootPath, prefix);
  		}
  	}
docs: Creates a {@link FileSystemStateStorageHelper} instance.
  
  @param configuration {@link Configuration} object
  @param prefix Prefix for the created files
  @param <T> Type of the state objects
  @return {@link FileSystemStateStorageHelper} instance
  @throws IOException if file system state storage cannot be created