Get discount factors for zero rates curve

I am calculating the net present value for simple FX Forward trades. To this end, I am building Zero Rate curves as follows.

CurveMetadata curveMetadata = Curves.zeroRates(DiscountCurveName, CURVE_DC, paramMetadataArrayList);

Curve curve = InterpolatedNodalCurve.builder()

Is there a way to see the discount factors that are used for the calcuation after creating the curve with zero rates?

I think ZeroRateDiscountFactors is what you are looking for.