@SuppressWarnings("unchecked") private static Object transformContext(Draft2Job context,String language){
  if (context == null) {
    return null;
  }
  if (!language.equals("#cwl-js-engine") && !language.equals("cwl-js-engine")) {
    Map<String,Object> newContext=(Map<String,Object>)CloneHelper.deepCopy(context.getInputs());
    newContext.put("allocatedResources",context.getResources());
    return newContext;
  }
  return context;
}

@ SuppressWarnings ( "unchecked" ) private static Object transformContext ( Draft2Job context , String language ) { if ( context == null ) { return null ; } if ( ! language . equals ( "#cwl-js-engine" ) && ! language . equals ( "cwl-js-engine" ) ) { Map < String , Object > newContext = ( Map < String , Object > ) CloneHelper . deepCopy ( context . getInputs ( ) ) ; newContext . put ( "allocatedResources" , context . getResources ( ) ) ; return newContext ; } return context ; }
by reference cwl implementation , context is equals to ' inputs ' section from the job out implementation uses whole job as a context
