oc.add(requiredElements);
}
}
try {
// get operation support for complete the disable operation
OperationSupport support = oc.getSupport();
// If support is null, no element can be disabled.
if ( support != null ) {
restarter = support.doOperation(null);
}
} catch (OperationException ex) {
Exceptions.printStackTrace(ex);
}
}