* @throws MultiException On a commit failure
*/
@SuppressWarnings("unchecked")
public static <T> ActiveDescriptor<T> addOneDescriptor(ServiceLocator locator, Descriptor descriptor,
boolean requiresDeepCopy) {
DynamicConfigurationService dcs = locator.getService(DynamicConfigurationService.class);
DynamicConfiguration config = dcs.createDynamicConfiguration();
ActiveDescriptor<T> retVal;
if (descriptor instanceof ActiveDescriptor) {
ActiveDescriptor<T> active = (ActiveDescriptor<T>) descriptor;