diff --git a/src/main/java/io/cryostat/core/net/CryostatFlightRecorderService.java b/src/main/java/io/cryostat/core/net/CryostatFlightRecorderService.java index 25ef2327..86942d98 100644 --- a/src/main/java/io/cryostat/core/net/CryostatFlightRecorderService.java +++ b/src/main/java/io/cryostat/core/net/CryostatFlightRecorderService.java @@ -34,8 +34,6 @@ import io.cryostat.core.templates.Template; import io.cryostat.core.templates.TemplateType; -import org.jsoup.nodes.Document; - public interface CryostatFlightRecorderService extends IFlightRecorderService { IRecordingDescriptor start( @@ -56,9 +54,9 @@ default IRecordingDescriptor start( return start(recordingOptions, eventTemplate.getName(), eventTemplate.getType()); } - default IRecordingDescriptor start(IConstrainedMap recordingOptions, Document template) + default IRecordingDescriptor start(IConstrainedMap recordingOptions, String template) throws FlightRecorderException, ParseException, IOException { - XMLModel model = EventConfiguration.createModel(template.toString()); + XMLModel model = EventConfiguration.createModel(template); IConstrainedMap eventOptions = new EventConfiguration(model) .getEventOptions(getDefaultEventOptions().emptyWithSameConstraints());