core/src/main/java/com/orientechnologies/orient/core/command/script/OScriptManager.java
public void releaseDatabaseEngine(final String iLanguage, final String iDatabaseName,
      final OPartitionedObjectPool.PoolEntry<ScriptEngine> poolEntry) {
    final ODatabaseScriptManager dbManager = dbManagers.get(iDatabaseName);
    // We check if there is still a valid pool because it could be removed by the function reload
    if (dbManager != null) {
      dbManager.releaseEngine(iLanguage, poolEntry);
    }

  }
public void releaseDatabaseEngine(final String iLanguage, final String iDatabaseName,
      final OPartitionedObjectPool.PoolEntry<ScriptEngine> poolEntry) {
    final ODatabaseScriptManager dbManager = dbManagers.get(iDatabaseName);
    // We check if there is still a valid pool because it could be removed by the function reload
    if (dbManager != null) {
      dbManager.releaseEngine(iLanguage, poolEntry);
    }

  }
Acquires a database engine from the pool. Once finished using it, the instance MUST be returned in the pool by calling the
method

@param iLanguage     Script language
@param iDatabaseName Database name
@param poolEntry     Pool entry to free
@see #acquireDatabaseEngine(String, String)