L197 and 198 should be inside the "if (delegate == null) {" block or a lookup will be performed for each getDelegate() call.