endpoint = lookUpEndpoint(analysisEngineKey, true);
CacheEntry cacheEntry = getInProcessCache().getCacheEntryForCAS(aCasReferenceId);
if (endpoint != null) {
endpoint.setController(this);
CasStateEntry casStateEntry = getLocalCache().lookupEntry(aCasReferenceId);
casStateEntry.resetReplyReceived();
if (enableCasLogMap!=null && enableCasLogMap.containsKey(analysisEngineKey)) {
// Get a CAS
CAS cas = cacheEntry.getCas();
logCasForEndpoint(analysisEngineKey, cas);
}