private String resolveLocationWithCatalog(String href) {
if (bus != null) {
OASISCatalogManager catalogResolver = OASISCatalogManager.getCatalogManager(bus);
try {
return new OASISCatalogManagerHelper().resolve(catalogResolver,
href, null);
} catch (Exception e) {
throw new RuntimeException("Catalog resolution failed", e);
}
} else {