diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java index 621e3f5f..29f5cb80 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java @@ -196,6 +196,14 @@ public IDocumentNodeItem resolveProfile(@NonNull File file) throws IOException, protected IDocumentNodeItem resolveProfile( @NonNull IDocumentNodeItem profileDocument, @NonNull Stack importHistory) throws IOException, ProfileResolutionException { + return resolveProfile(profileDocument, importHistory, profileDocument.getBaseUri()); + } + + @NonNull + protected IDocumentNodeItem resolveProfile( + @NonNull IDocumentNodeItem profileDocument, + @NonNull Stack importHistory, + @NonNull URI resolvedCatalogUri) throws IOException, ProfileResolutionException { Catalog resolvedCatalog = new Catalog(); generateMetadata(resolvedCatalog, profileDocument); @@ -210,7 +218,7 @@ protected IDocumentNodeItem resolveProfile( ObjectUtils.notNull( (IAssemblyClassBinding) OscalBindingContext.instance().getClassBinding(Catalog.class))), resolvedCatalog, - profileDocument.getBaseUri()); + resolvedCatalogUri); } @NonNull