@Override
            public File doInBackground()
            {
                File pluginsDir = new File(binDir.getParentFile(), "plugins");
                String tempName = plugin.getName() + ".part";
                File tempPluginsFile = new File(pluginsDir, tempName);

                File realPluginsFile = new File(pluginsDir, plugin.getName());

                // Copy Plugin into Dir.
                try {
                    // Just for fun. Show no matter what for two seconds.
                    Thread.sleep(2000);

                    copy(plugin.toURI().toURL(), tempPluginsFile);

                    // If successfull, rename to real plugin name.
                    tempPluginsFile.renameTo(realPluginsFile);
                } catch (Exception e) {
                    e.printStackTrace();
                }
                return realPluginsFile;
            }
Creates a new GUI launcher instance.
@param args The command line arguments
@throws AWTException if AWT cannot be initialised
starter/src/main/java/org/jivesoftware/openfire/launcher/Launcher.java