@Override
            public boolean accept(File dir, String name) {

                // If it ends with .jar, accept the file
                return name.endsWith(".jar");

            }
Returns all .jar files within the given directory as an array of URLs.

@param dir
    The directory to retrieve all .jar files from.

@return
    An array of the URLs of all .jar files within the given directory.

@throws GuacamoleException
    If the given file is not a directory, or the contents of the given
    directory cannot be read.
guacamole/src/main/java/org/apache/guacamole/extension/DirectoryClassLoader.java