code: private static boolean globMatch(String glob, String text) {
          GlobMatch m = new GlobMatch();
  
          return m.match(text, glob);
      }
docs: Performs a glob match against a string.
  <p/>
  Taken from: http://stackoverflow.com/questions/1247772/is-there-an-equivalent-of-java-util-regex-for-glob-type-patterns
  
  @param glob The glob pattern to match with.
  @param text The text to match against.
  @return true if it matches, else false.