}
public void visitField(SpeedoField sf) throws SpeedoException {
super.visitField(sf);
if (sf.type.startsWith("Ljava/sql/")) {
SpeedoExtension se = new SpeedoExtension();
se.vendorName = SpeedoProperties.VENDOR_NAME;
se.key = SpeedoProperties.FIELD_CONVERTER;
se.value = "org.objectweb.speedo.lib.Sql";
se.value += sf.type.substring(10, sf.type.length()-1);
se.value += "FieldMapping";
logger.log(BasicLevel.DEBUG, "Use the converter '" + se.value
+ "' for the field '" + sf.name + "'");
sf.addExtension(se);
} else if (sf.type.startsWith("Ljava/util/Locale")) {
SpeedoExtension se = new SpeedoExtension();
se.vendorName = SpeedoProperties.VENDOR_NAME;
se.key = SpeedoProperties.FIELD_CONVERTER;
se.value = "org.objectweb.speedo.lib.LocaleFieldMapping";
logger.log(BasicLevel.DEBUG, "Use the converter '" + se.value
+ "' for the field '" + sf.name + "'");