Displayer displayer = renderer.lookupDisplayer(target);
if (displayer == null) throw new RuntimeException(target.getType() + " displayer not supported in " + target.getRenderer() + " renderer.");
displayer.setDisplayerSettings( target );
// Check if a DataSet has been set instead of a DataSetLookup.
DataSetLookup dataSetLookup = target.getDataSetLookup();
if (target.getDataSet() != null) {
DataSet dataSet = target.getDataSet();
clientDataSetManager.registerDataSet(dataSet);
dataSetLookup = new DataSetLookup(dataSet.getUUID());
}
DataSetHandler handler = new DataSetHandlerImpl(dataSetLookup);
displayer.setDataSetHandler(handler);
return displayer;