Moved getConvention method to CurveNodeVisitorAdapter so it can be reused elsewhere.