public static EmbeddedKettleQueryEntry createFromExisting(String name,
EmbeddedKettleTransformationProducer producer,
DataFactoryContext dataFactoryContext)
throws KettleException, ReportDataFactoryException
{
XulDialogHelper dialogHelper = new XulDialogHelper(producer.loadTransformation(dataFactoryContext));
EmbeddedKettleQueryEntry entry = new EmbeddedKettleQueryEntry(name, producer.getPluginId(), dialogHelper);
entry.setArguments(producer.getArguments());
entry.setParameters(producer.getParameter());
entry.setStopOnErrors(producer.isStopOnError());
return entry;