public void put(String command, String val) throws Exception {
    try {
      command = "put " + command + " " + val;
      List<String> list = parseCommand(command);
      if (list.size() < 3) {
        System.out.println("Error:put requires a name and a value");
      } else {
        String name = list.get(1);
        String value = list.get(2);
        if (list.size() > 3) {
          String objectType = list.get(3);
          if (objectType.equalsIgnoreCase("int")) {
            currRegion.put(name, Integer.valueOf(value));
          } else if (objectType.equalsIgnoreCase("str")) {
            currRegion.put(name, value);
          } else {
            System.out.println("Invalid object type specified. Please see help.");
            // fail (" Invalid object type specified !!");
          }
        } else {
          currRegion.put(name, value.getBytes());
        }
      }
    } catch (Exception e) {
      throw new Exception("unable to put: " + e);
    }

  }
Puts an entry into the current region

@see Region#put
geode-junit/src/main/java/org/apache/geode/internal/jta/JTAUtils.java