private static boolean containsSpecialChar(String value) {
    return value.contains(":") || value.contains("@") || value.contains("-") || value.contains("#")
        || value.contains("+") || value.contains("?");
  }
Return a String that been modified to be compliant as a property of an ObjectName.
<p>
The property name of an ObjectName may not contain any of the following characters: <b><i>: , =
* ?</i></b>
<p>
This method will replace the above non-compliant characters with a dash: <b><i>-</i></b>
<p>
If value is empty, this method will return the string "nothing".
<p>
Note: this is <code>public</code> because certain tests call this from outside of the package.

@param value the potentially non-compliant ObjectName property
@return the value modified to be compliant as an ObjectName property
geode-core/src/main/java/org/apache/geode/management/internal/MBeanJMXAdapter.java