Collection producersMatching = new LinkedList();
Collection<Class> producersMatching = new LinkedList<Class>();
    public Class[] getClassesMatchingProductionFromActiveNode(            ActiveNode destNode) {        Collection producersMatching = new LinkedList();        Class[] producersAllowed = getProducersAllowed();        for (int i = 0; i < producersAllowed.length; i++) {            if (producersAllowed[i].isInstance(destNode                    .getSimBioModuleImpl())) {                producersMatching.add(producersAllowed[i]);            }        }        Class[] classArray = (Class[])(producersMatching.toArray(new Class[0]));        return classArray;    }