package spinat.codecoverage;

import java.lang.reflect.Method;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;

public class Main {

    static String configKey = "spinat.codecoverage";

    public static void main(String[] args) throws Exception {
        spinat.oraclejdbcclassloading.ClassLoaderFactory factoryCL
                = new spinat.oraclejdbcclassloading.ClassLoaderFactory(configKey);

        if (args.length == 1 && args[0].equals("-clear-jdbc-file")) {
            factoryCL.clearJDBCFileMemory();
            System.out.println("cleared JDBC file memory");
            System.exit(0);
        }

        try {
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (Exception e) {
            e.printStackTrace(System.err);
        }

        ClassLoader cl = factoryCL.mkClassLoader(Main.class.getClassLoader());
        Class realMainClass = cl.loadClass("spinat.codecoverage.RealMain");
        Method m = realMainClass.getMethod("main", new String[0].getClass());
        m.invoke(null, (Object) args);

    }

}

@@ -647,360 +647,80 @@
     
-try %7B%0A            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) %7B%0A                if (%22Nimbus%22.equals(info.getName())) %7B%0A                    UIManager.setLookAndFeel(info.getClassName());%0A                    break;%0A                %7D%0A            %7D%0A        %7D catch (Exception e) %7B%0A            e.printStackTrace(System.err);%0A        %7D%0A
+UIManager.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel());
 %0A   

use Metal Look and Feel, it is guarenteed!