private void convert(final int iIndex) {
    if (converted || !convertToRecord)
      return;

    Object o = super.get(iIndex);
    if (o == null) {

      final ODatabaseDocument database = getDatabase().getUnderlying();

      o = recordList.get(iIndex);
      ODocument doc;
      if (o instanceof ORID) {
        doc = database.load((ORID) o, fetchPlan);
      } else {
        doc = (ODocument) o;
      }
      if (o == null) {
        OLogManager.instance().warn(
            this,
            "Record " + ((OObjectProxyMethodHandler) sourceRecord.getHandler()).getDoc().getIdentity()
                + " references a deleted instance");
        return;
      }
      super.set(
          iIndex,
          (TYPE) OObjectEntityEnhancer.getInstance().getProxiedInstance(doc.getClassName(), getDatabase().getEntityManager(), doc,
              sourceRecord));
    }
  }
private void convert ( final int iIndex ) { if ( converted || ! convertToRecord ) return ; Object o = super . get ( iIndex ) ; if ( o == null ) { final ODatabaseDocument database = getDatabase ( ) . getUnderlying ( ) ; o = recordList . get ( iIndex ) ; ODocument doc ; if ( o instanceof ORID ) { doc = database . load ( ( ORID ) o , fetchPlan ) ; } else { doc = ( ODocument ) o ; } if ( o == null ) { OLogManager . instance ( ) . warn ( this , "Record " + ( ( OObjectProxyMethodHandler ) sourceRecord . getHandler ( ) ) . getDoc ( ) . getIdentity ( ) + " references a deleted instance" ) ; return ; } super . set ( iIndex , ( TYPE ) OObjectEntityEnhancer . getInstance ( ) . getProxiedInstance ( doc . getClassName ( ) , getDatabase ( ) . getEntityManager ( ) , doc , sourceRecord ) ) ; } }
Convert the item requested.

@param iIndex
Position of the item to convert