try {
KnowledgeFlowApp singleton = KnowledgeFlowApp.getSingleton();
String encoded =
TimeSeriesForecasting.encodeForecasterToBase64(toSave, structureToSave);
TimeSeriesForecasting component = new TimeSeriesForecasting();
component.setEncodedForecaster(encoded);
TimeSeriesForecastingKFPerspective.setClipboard(component);
} catch (Exception ex) {
ex.printStackTrace();
}