if (ivy != null) { Message.debug("setting ivy.instance on "+getProject()+": "+ivy+" class="+ivy.getClass().getName()+" classloader="+ivy.getClass().getClassLoader());  Map instances = (Map) getProject().getReference("ivy.instances"); if (instances == null) { instances = new HashMap(); getProject().addReference("ivy.instances", instances); } instances.put(ivy.getClass(), ivy); }
    protected void setIvyInstance(Ivy ivy) {        getProject().addReference("ivy.instance", ivy);    }