newPath = "/" + newPath.substring(1);
}
}
newPath += ".{format}";
apiListingReferences.add(new ApiListingReference(newPath,
apiListingReference.description(), apiListingReference
.position()));
}
// there's no setter of path for ApiListingReference, we need to create
// a new ResourceListing for new path
serviceDocument = new ResourceListing(serviceDocument.apiVersion(),