/** * Returns the lazy-initialized target object, creating it if it doesn't exist. * @see #createObject() */ public Object getTarget() throws Exception { if(this.lazyTarget == null) { logger.debug("Initializing lazy target object."); synchronized(this) { this.lazyTarget = createObject(); } } return this.lazyTarget; }