/** * Cookies from assigned Environment are not placed into * protected CookieSet and can be obtained only by invoking this method. * <p> * Cookie order for Info environments are handled consistently with * CookieSet i.e. FIFO. * @return a cookie (instanceof cls) that has been found in info or * super.getCookie(cls). */ public Node.Cookie getCookie (Class cls) { getIP ().waitFinished(); Node.Cookie cake = (Node.Cookie)getIP ().lookupCookie (cls); if (cake instanceof InstanceCookie) { cake = ofCookie ((InstanceCookie)cake, cls); } if (cake == null) { cake = super.getCookie (cls); } return cake; }