/**
* INTERNAL:
* Process this converter for the given mapping.
*/
public void process(DatabaseMapping mapping, MappingAccessor accessor, MetadataClass referenceClass, boolean isForMapKey) {
SerializedObjectConverter converter = null;
if ((m_className == null) || (m_className.length() == 0)) {
converter = new SerializedObjectConverter(mapping);
} else {
converter = new SerializedObjectConverter(mapping, getClassName());
}
if ((m_serializerPackage != null) || (m_serializerPackage.length() == 0)) {
converter.setSerializerPackage(m_serializerPackage);
} else {
// Default package to target classes package.
converter.setSerializerPackage(referenceClass.getName().substring(0, referenceClass.getName().lastIndexOf('.')));
}
setConverter(mapping, converter, isForMapKey);
}