public String printEntry(String key, Object valueBytes) {
    String value = null;

    if (valueBytes != null) {
      if (valueBytes instanceof byte[]) {
        value = "byte[]: \"" + new String((byte[]) valueBytes) + "\"";
      } else if (valueBytes instanceof String) {
        value = "String: \"" + valueBytes + "\"";
      } else if (valueBytes instanceof Integer) {
        value = "Integer: \"" + valueBytes + "\"";
      } else {
        value = "No value in cache.";
      }

      System.out.print("     " + key + " -> " + value);
    }
    return value;
  }
Prints the key/value pair for an entry to stdout This method recognizes a subset of all
possible object types. Modified to return the value string
geode-junit/src/main/java/org/apache/geode/internal/jta/JTAUtils.java