PassiveNode passiveDestNode = (PassiveNode) sourceNode;
    public boolean isConsumingFromNode(PassiveNode sourceNode) {        PassiveNode passiveDestNode = (PassiveNode) sourceNode;        List currentNodesConnected = getSourceNodes();        for (Iterator iter = currentNodesConnected.iterator(); iter.hasNext();) {            ModuleNode currentNode = (ModuleNode) iter.next();            if (currentNode.getClass().equals(sourceNode.getClass()))                return true;        }        return false;    }