Class javaClass = obj.getClass();
if(logger.isLoggable(Logger.FINE))
logger.log(Logger.FINE,"Ontology "+getName()+". Translating object of class "+javaClass);
// Retrieve the schema
ObjectSchema schema = (ObjectSchema) schemas.get(javaClass);
if (schema != null) {
if(logger.isLoggable(Logger.FINE))
logger.log(Logger.FINE,"Ontology "+getName()+". Schema for class "+javaClass+" found locally: "+schema);
// Try to manage as special type
AbsObject abs = null;
try {
abs = externalizeSpecialType(obj, schema, javaClass, globalOnto);
} catch(NotASpecialType nasp) {
// Manage as structure slot
abs = schema.newInstance();
externalize(obj, abs, schema, globalOnto);
}
return abs;
}