// Insert, if successful then get out of here.
final WriteResult result = getDbCollection(pMongo, pSvcOptions).insert(lockDoc, WriteConcern.NORMAL);
final CommandResult cmdResult = result.getLastError(WriteConcern.NORMAL);
if (!cmdResult.ok() || cmdResult.getException() != null || cmdResult.getErrorMessage() != null) return null;
if (pSvcOptions.getEnableHistory())
{ LockHistoryDao.insert( pMongo, pLockName, pSvcOptions, pLockOptions, serverTime, LockState.LOCKED, lockId, false); }
return lockId;