Added DirectoryResourceConverter to avoid ClassCastExceptions when using UIInput<DirectoryResource>