/** * Looks up a previously created search result in the "global" cache. * * @return the List of previously found search results */ private Map lookupMethod(MethodCall methodCall) { return (Map) getMethodCache().get(methodCall.getKey()); }
private void addCallToCache(MethodCall methodCall) { Map cachedCalls = lookupMethod(this.getMethodCall()); cachedCalls.put(methodCall.getKey(), methodCall); }