@Override public ORID getIdentity() {
    if (rawElement == null)
      return ORecordId.EMPTY_RECORD_ID;

    final ORID rid = rawElement.getIdentity();
    if (!rid.isValid()) {
      final OrientBaseGraph graph = getGraph();
      if (graph != null) {
        // SAVE THE RECORD TO OBTAIN A VALID RID
        graph.setCurrentGraphInThreadLocal();
        graph.autoStartTransaction();
        save();
      }
    }
    return rid;
  }
@ Override public ORID getIdentity ( ) { if ( rawElement == null ) return ORecordId . EMPTY_RECORD_ID ; final ORID rid = rawElement . getIdentity ( ) ; if ( ! rid . isValid ( ) ) { final OrientBaseGraph graph = getGraph ( ) ; if ( graph != null ) { graph . setCurrentGraphInThreadLocal ( ) ; graph . autoStartTransaction ( ) ; save ( ) ; } } return rid ; }
(Blueprints Extension) Returns the record's identity.