LPS-49142 We need to pass null, not the empty string
LPS-49142 Robust check to prevent failures when the required resource does not exist
LPS-49142 SF
LPS-49180 Fix ClassCastException when an external repository is created
LPS-48793 SF
LPS-49130 Use DDMStorageId for path so that file isnt overwritten