private static boolean classMatchesPackage(String className, String packageSpec) {
    if (!packageSpec.contains("*")) {
      return className.startsWith(packageSpec);
    }

    return className.matches(globToRegex(packageSpec));
  }
replaces shell-style glob characters with their regexp equivalents
geode-core/src/main/java/org/apache/geode/management/internal/util/ClasspathScanLoadHelper.java