@@ -35,6 +35,7 @@ public static void sbml_to_vcml(String sbml_content, Path vcmlPath)
3535 throws VCLoggerException , XmlParseException , IOException , MappingException {
3636
3737 GeometrySpec .avoidAWTImageCreation = true ;
38+ XmlHelper .cloneUsingXML = true ;
3839 VCMongoMessage .enabled = false ;
3940
4041 record LoggerMessage (VCLogger .Priority priority , VCLogger .ErrorType errorType , String message ) {};
@@ -76,6 +77,7 @@ record LoggerMessage(VCLogger.Priority priority, VCLogger.ErrorType errorType, S
7677 public static void vcml_to_sbml (String vcml_content , String applicationName , Path sbmlPath , boolean roundTripValidation )
7778 throws XmlParseException , IOException , XMLStreamException , SbmlException , MappingException , ImageException , GeometryException , ExpressionException {
7879 GeometrySpec .avoidAWTImageCreation = true ;
80+ XmlHelper .cloneUsingXML = true ;
7981 VCMongoMessage .enabled = false ;
8082
8183 BioModel bioModel = XmlHelper .XMLToBioModel (new XMLSource (vcml_content ));
@@ -115,6 +117,7 @@ public static void vcml_to_sbml(String vcml_content, String applicationName, Pat
115117
116118 public static void vcml_to_vcml (String vcml_content , Path vcmlPath ) throws XmlParseException , IOException , MappingException {
117119 GeometrySpec .avoidAWTImageCreation = true ;
120+ XmlHelper .cloneUsingXML = true ;
118121 VCMongoMessage .enabled = false ;
119122
120123 BioModel bioModel = XmlHelper .XMLToBioModel (new XMLSource (vcml_content ));
@@ -126,6 +129,7 @@ public static void vcml_to_vcml(String vcml_content, Path vcmlPath) throws XmlPa
126129
127130 public static String get_python_infix (String vcellInfix ) throws ExpressionException {
128131 GeometrySpec .avoidAWTImageCreation = true ;
132+ XmlHelper .cloneUsingXML = true ;
129133 VCMongoMessage .enabled = false ;
130134 return new Expression (vcellInfix ).infix_Python ();
131135 }
0 commit comments