private String getStringAttribute(Object object, String name) {
    if (object == null) {
      return "";
    }

    try {
      if (!(object.getClass().equals(String.class))) {
        logger.info(
            "************************Unexpected type for attribute: {}; Expected type: {}; Received type: {}************************",
            name, String.class.getName(), object.getClass().getName());
        return "";
      } else {
        return (String) object;
      }
    } catch (Exception e) {
      logger.info("Exception occurred: ", e);
      return "";
    }
  }
function used to handle String data type if the value for mbean for an attribute is null then
return the empty string as default value else return the attribute value
geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/data/JMXDataUpdater.java