private boolean endsWithSeparator(String path) {
    return path.endsWith("/") || path.endsWith("\\");
  }
Returns true if the path ends with a path separator.
geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java