src/main/java/org/jboss/util/Classes.java
public final static Class<?>[] convertToJavaClasses(Iterator<String> it,
                                                    ClassLoader cl)
      throws ClassNotFoundException
   {
      ArrayList<Class<?>> classes = new ArrayList<Class<?>>();
      while (it.hasNext())
      {
         classes.add(convertToJavaClass(it.next(), cl));
      }
      return classes.toArray(new Class[classes.size()]);
   }
public final static Class<?>[] convertToJavaClasses(Iterator<String> it,
                                                    ClassLoader cl)
      throws ClassNotFoundException
   {
      ArrayList<Class<?>> classes = new ArrayList<Class<?>>();
      while (it.hasNext())
      {
         classes.add(convertToJavaClass(it.next(), cl));
      }
      return classes.toArray(new Class[classes.size()]);
   }
Convert a list of Strings from an Interator into an array of
Classes (the Strings are taken as classnames).

@param it A java.util.Iterator pointing to a Collection of Strings
@param cl The ClassLoader to use

@return Array of Classes

@throws ClassNotFoundException When a class could not be loaded from
the specified ClassLoader