private static void setTema()
    {
        try
        {
            String tema = OSValidator.getTemaIntegrazione();
            String temaClassName = "";
            String temaNimbus = "";
            boolean temaTrovato = false;
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels())
            {
                if ("Nimbus".equals(info.getName())) temaNimbus = info.getClassName();
                if (tema.equals(info.getName()))
                {
                    temaClassName = info.getClassName();
                    temaTrovato = true;
                    break;
                }
            }
            if (temaTrovato) UIManager.setLookAndFeel(temaClassName);
            else UIManager.setLookAndFeel(temaNimbus);
        }
        catch(Exception e){}
    }