* @param locator The non-null locator to add this descriptor to
* @param addMe The classes to add to the locator
* @throws MultiException On a commit failure
*/
public static List<ActiveDescriptor<?>> addClasses(ServiceLocator locator, Class<?>... toAdd) {
DynamicConfigurationService dcs = locator.getService(DynamicConfigurationService.class);
DynamicConfiguration config = dcs.createDynamicConfiguration();
LinkedList<ActiveDescriptor<?>> retVal = new LinkedList<ActiveDescriptor<?>>();
for (Class<?> addMe : toAdd) {
ActiveDescriptor<?> ad = config.addActiveDescriptor(addMe);
retVal.add(ad);