private static void checkSecurityManager() {

        //if we have a security manager just return
        if (System.getSecurityManager() != null) {
            return;
        }

        //log the warning
        logger.log(Level.WARNING, "********************************/n NO SECURITY MANAGER INSTALLED !!!/n********************************");

        //If we are headless then just return
        if (Boot.isHeadless()) {
            return;
        }

        //If the security warning has been turned off then just return
        String noSecurityWarning = bootProps.getProperty(NO_SECURITY_WARNING_PROP);
        if (Boolean.parseBoolean(noSecurityWarning)) {
            return;
        }

        //Tell the user that there is no security manager
        try {
            SwingUtilities.invokeAndWait(new Runnable() {
                public void run() {
                    try {

                        String title = Resources.bundle.getString("boot.security.warning.title");
                        title = MessageFormat.format(title, Boot.getAppDisplayName());
                        String subtitle = Resources.bundle.getString("boot.no.security.subtitle");
                        String msg = Resources.bundle.getString("boot.no.security.warning");

                        ErrorPromptHandler.PromptResult result = showYesNoError(title, subtitle, msg, null);

                        if (result == ErrorPromptHandler.PromptResult.NO) {
                            Boot.endSession(true);
                        }
                    } catch (Throwable t) {
                        logger.log(Level.SEVERE, t.getMessage(), t);
                    }
                }
            });
        } catch (InterruptedException e) {
            logger.log(Level.SEVERE, e.getMessage(), e);
        } catch (InvocationTargetException e) {
            logger.log(Level.SEVERE, e.getMessage(), e);
        }

    }