graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientElement.java
@Override public ODocument getRecord() {
    if (rawElement == null)
      return null;

    if (rawElement instanceof ODocument)
      return (ODocument) rawElement;

    final ODocument doc = rawElement.getRecord();
    if (doc == null)
      return null;

    // CHANGE THE RID -> DOCUMENT
    rawElement = doc;
    return doc;
  }
@Override public ODocument getRecord() {
    if (rawElement == null)
      return null;

    if (rawElement instanceof ODocument)
      return (ODocument) rawElement;

    final ODocument doc = rawElement.getRecord();
    if (doc == null)
      return null;

    // CHANGE THE RID -> DOCUMENT
    rawElement = doc;
    return doc;
  }
(Blueprints Extension) Returns the underlying record.