return (ORecordId) id;
} else if (id instanceof Number) {
// TREATS AS CLUSTER POSITION
final OClass cls = iDb.getMetadata().getSchema().getClass(iPojo.getClass());
if (cls == null)
throw new OConfigurationException("Class " + iPojo.getClass() + " is not managed by current database");
return new ORecordId(cls.getDefaultClusterId(), ((Number) id).longValue());
} else if (id instanceof String)
return new ORecordId((String) id);
}