Either calling out to Python to run https://github.com/common-workflow-language/cwl-upgrader/ or by porting that logic to Java code here
Either calling out to Python to run https://github.com/common-workflow-language/cwl-upgrader/ or by porting that logic to Java code here