updated for OrientDB v1.4