Support YAML/XML REST resource importing from the DirectoryLoader