DbEnvPool.getInstance().getExistingEnvironment(envHome);
EnvironmentImpl foundImpl = envInfo.envImpl;
if (foundImpl != null) {
/* Check if the environmentImpl is valid. */
foundImpl.checkIfInvalid();
/* Successful, increment reference count */
environmentImpl = foundImpl;
environmentImpl.incReferenceCount();