{
public Object javaToSql(Object source) throws ConversionException
{
if (!(source instanceof ConversionId))
{
throw new ConversionException(
"Wrong java field type when java-->sql, expected " +
ConversionId.class.getClass() + ", found "
+ source.getClass());
}
return ((ConversionId) source).getConversionId();