json.beginObject();
if (iRecords != null && iRecords.size() > 0) {
ORecord<?> first = iRecords.get(0);
if (first != null && first instanceof ODocument) {
ODatabaseRecord db = ((ODocument) first).getDatabase();
<BUG>String className = ((ODocument) first).getClassName();
</BUG>
exportClassSchema(db, json, db.getMetadata().getSchema().getClass(className));
}
}

json.beginObject();
if (iRecords != null && iRecords.size() > 0) {
ORecord<?> first = iRecords.get(0);
if (first != null && first instanceof ODocument) {
ODatabaseRecord db = ((ODocument) first).getDatabase();
final String className = ((ODocument) first).getClassName();
exportClassSchema(db, json, db.getMetadata().getSchema().getClass(className));
}
}
