I don't think there should be an overload toDSL(String, String) method, setters should be used to set the --mode and --binary options and then the toDSL will pick up those options.