System.out.println("Cycle!");
Console.getInstance().println("Warning: cyclic reference made by port '"+portname+"'.");
	public String findAndResolvePort(String temp, String name) {		System.out.println("find and resolve port: "+temp+"."+name);				String portname=temp+"."+name;		String target="$("+portname+")";				if (portMap.containsKey(portname)) {			if (portMap.get(portname) == cycleFlag) {				System.out.println("Cycle!");				addPort(portname, target);			}			return (String)portMap.get(portname);		}				portMap.put(portname, cycleFlag); // flag visited									Object obj=template.getGroup().findObject(temp, true);		if (obj!=null && obj instanceof Template) {			Template t=(Template)obj;			NamingContext newNamer = createNamingContextFor(t.getTemplateData());			VDBPort port=(VDBPort)t.getTemplateData().getTemplate().getPorts().get(name);			if (port!=null) target=newNamer.resolvePort(port);				}				addPort(portname, target);				return target;	}