if (uniqueOperations.contains(name)) {
throw new RuntimeException("Duplicate operation name: " + name);
}
uniqueOperations.add(name);
String opDisplayName = managedOp.displayName();
if (opDisplayName.length() == 0) {
throw new RuntimeException("Missing displayName on: " + name);
}
String displayName = withNamePrefix ? "[" + mbean.objectName() + "] " + opDisplayName : opDisplayName;
validateDisplayName(displayName);