import org.cytoscape.view.vizmap.VisualMappingFunction;
import org.cytoscape.view.vizmap.VisualMappingFunctionFactory;
import org.cytoscape.view.vizmap.mappings.PassthroughMapping;
import org.cytoscape.view.vizmap.mappings.ValueTranslator;
public class PassthroughMappingFactory implements VisualMappingFunctionFactory {
<BUG>private static final Map<Class<?>, ValueTranslator<?, ?>> TRANSLATORS = new HashMap<Class<?>, ValueTranslator<?,?>>();
private static final ValueTranslator<Object, String> DEFAULT_TRANSLATOR = new StringTranslator();
private final CyEventHelper eventHelper;
public PassthroughMappingFactory(final CyEventHelper eventHelper) {
this.eventHelper = eventHelper;
}
public void addValueTranslator(ValueTranslator<?, ?> translator, Map props) {
</BUG>
if (translator != null)

import org.cytoscape.view.vizmap.VisualMappingFunction;
import org.cytoscape.view.vizmap.VisualMappingFunctionFactory;
import org.cytoscape.view.vizmap.mappings.PassthroughMapping;
import org.cytoscape.view.vizmap.mappings.ValueTranslator;
public class PassthroughMappingFactory implements VisualMappingFunctionFactory {
private static final Map<Class<?>, ValueTranslator<?, ?>> TRANSLATORS = new HashMap<>();
private static final ValueTranslator<Object, String> DEFAULT_TRANSLATOR = new StringTranslator();
private final CyServiceRegistrar serviceRegistrar;
public PassthroughMappingFactory(final CyServiceRegistrar serviceRegistrar) {
this.serviceRegistrar = serviceRegistrar;
}
public void addValueTranslator(ValueTranslator<?, ?> translator, Map<?, ?> props) {
if (translator != null)
