@Override public <T> T removeProperty(final String key) {
    if (checkDeletedInTx())
      throw new IllegalStateException("The vertex " + getIdentity() + " has been deleted");

    final OrientBaseGraph graph = getGraph();

    if (graph != null)
      graph.autoStartTransaction();

    final Object oldValue = getRecord().removeField(key);
    if (graph != null)
      save();
    return (T) oldValue;
  }
@Override public <T> T removeProperty(final String key) {
    if (checkDeletedInTx())
      throw new IllegalStateException("The vertex " + getIdentity() + " has been deleted");

    final OrientBaseGraph graph = getGraph();

    if (graph != null)
      graph.autoStartTransaction();

    final Object oldValue = getRecord().removeField(key);
    if (graph != null)
      save();
    return (T) oldValue;
  }
@ Override public < T > T removeProperty ( final String key ) { if ( checkDeletedInTx ( ) ) throw new IllegalStateException ( "The vertex " + getIdentity ( ) + " has been deleted" ) ; final OrientBaseGraph graph = getGraph ( ) ; if ( graph != null ) graph . autoStartTransaction ( ) ; final Object oldValue = getRecord ( ) . removeField ( key ) ; if ( graph != null ) save ( ) ; return ( T ) oldValue ; }
Removes a Property.

@param key Property name
@return Old value if any
Removes a Property .