@Override
protected List<AbstractPlugin<?>> initPlugins(AbstractDataSource<?> source) {
List<AbstractPlugin<?>> result = super.initPlugins(source);
NumberToStringDataAdapter numberAdapter = getNumberAdapter(source);
if (numberAdapter != null) {
FormatPlugin foundedPlugin = null;
for (AbstractPlugin<?> plugin : result) {
if (plugin instanceof FormatPlugin) {
foundedPlugin = (FormatPlugin) plugin;
}
}
if (foundedPlugin != null) {
try {
foundedPlugin.addPlugin(source.getOriginDescriptor(), numberAdapter);
}
catch (UnhandledDataTypeException e) {
e.printStackTrace();
}
// XXX RG: do not remove plugin