updated for OrientDB 1.6.6