made use of clearCachedAuthorizationInfo method on logout (was duplicating logic)

git-svn-id: https://svn.apache.org/repos/asf/incubator/jsecurity/trunk@711098 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/jsecurity.iml b/jsecurity.iml
index 533c7dd..f82e115 100644
--- a/jsecurity.iml
+++ b/jsecurity.iml
@@ -1,98 +1,98 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<module relativePaths="true" type="JAVA_MODULE" version="4">

-  <component name="FacetManager">

-    <facet type="Spring" name="Spring">

-      <configuration>

-        <fileset id="fileset1" name="Spring Sample" removed="false">

-          <file>file://$MODULE_DIR$/samples/spring/webroot/WEB-INF/applicationContext.xml</file>

-          <file>file://$MODULE_DIR$/samples/spring/etc/webstart.spring.xml</file>

-          <file>file://$MODULE_DIR$/samples/spring/webroot/WEB-INF/sample-servlet.xml</file>

-          <file>file://$MODULE_DIR$/samples/spring/webroot/WEB-INF/remoting-servlet.xml</file>

-        </fileset>

-        <options>

-          <option name="enableValidation" value="true" />

-          <option name="reportErrorsAsWarnings" value="true" />

-        </options>

-        <customNs />

-      </configuration>

-    </facet>

-    <facet type="web" name="jsecurity-web">

-      <configuration>

-        <descriptors>

-          <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/samples/web/WEB-INF/web.xml" optional="false" version="2.5" />

-        </descriptors>

-        <webroots>

-          <root url="file://$MODULE_DIR$/samples/web" relative="/" />

-        </webroots>

-        <sourceRoots>

-          <root url="file://$MODULE_DIR$/src" />

-        </sourceRoots>

-        <building>

-          <setting name="EXPLODED_URL" value="file://$MODULE_DIR$/out/exploded/samples/web" />

-          <setting name="EXPLODED_ENABLED" value="true" />

-          <setting name="JAR_URL" value="file://$MODULE_DIR$/out/Quickstart Webapp.war" />

-          <setting name="JAR_ENABLED" value="false" />

-          <setting name="BUILD_MODULE_ON_FRAME_DEACTIVATION" value="false" />

-          <setting name="BUILD_EXTERNAL_DEPENDENCIES" value="false" />

-          <setting name="EXCLUDE_EXPLODED_DIRECTORY" value="true" />

-          <setting name="RUN_JASPER_VALIDATION" value="true" />

-          <setting name="BUILD_ONLY_WEB_RESOURCES" value="false" />

-        </building>

-        <packaging>

-          <containerElement type="module" name="jsecurity">

-            <attribute name="method" value="1" />

-            <attribute name="URI" value="/WEB-INF/classes" />

-          </containerElement>

-          <containerElement type="library" name="all-libs" level="project">

-            <attribute name="method" value="0" />

-            <attribute name="URI" value="&lt;N/A&gt;" />

-          </containerElement>

-          <containerElement type="library" name="quickstart-libs" level="project">

-            <attribute name="method" value="0" />

-            <attribute name="URI" value="/WEB-INF/lib" />

-          </containerElement>

-          <containerElement type="library" level="module">

-            <attribute name="method" value="0" />

-            <attribute name="URI" value="&lt;N/A&gt;" />

-            <url>jar://$APPLICATION_HOME_DIR$/lib/j2ee.jar!/</url>

-          </containerElement>

-        </packaging>

-      </configuration>

-    </facet>

-  </component>

-  <component name="NewModuleRootManager" inherit-compiler-output="false">

-    <output url="file://$MODULE_DIR$/build/classes" />

-    <exclude-output />

-    <content url="file://$MODULE_DIR$">

-      <sourceFolder url="file://$MODULE_DIR$/samples/spring-hibernate/WEB-INF/classes" isTestSource="false" />

-      <sourceFolder url="file://$MODULE_DIR$/samples/spring-hibernate/src" isTestSource="false" />

-      <sourceFolder url="file://$MODULE_DIR$/samples/spring/etc" isTestSource="false" />

-      <sourceFolder url="file://$MODULE_DIR$/samples/spring/src" isTestSource="false" />

-      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />

-      <sourceFolder url="file://$MODULE_DIR$/support/spring/src" isTestSource="false" />

-      <sourceFolder url="file://$MODULE_DIR$/support/spring/test" isTestSource="true" />

-      <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />

-      <excludeFolder url="file://$MODULE_DIR$/build" />

-    </content>

-    <orderEntry type="inheritedJdk" />

-    <orderEntry type="sourceFolder" forTests="false" />

-    <orderEntry type="library" name="all-libs" level="project" />

-    <orderEntry type="module-library">

-      <library>

-        <CLASSES>

-          <root url="jar://$APPLICATION_HOME_DIR$/lib/j2ee.jar!/" />

-        </CLASSES>

-        <JAVADOC />

-        <SOURCES />

-      </library>

-    </orderEntry>

-    <orderEntry type="library" name="quickstart-libs" level="project" />

-    <orderEntryProperties />

-  </component>

-  <component name="copyright">

-    <Base>

-      <setting name="state" value="1" />

-    </Base>

-  </component>

-</module>

-

+<?xml version="1.0" encoding="UTF-8"?>
+<module relativePaths="true" type="JAVA_MODULE" version="4">
+  <component name="FacetManager">
+    <facet type="Spring" name="Spring">
+      <configuration>
+        <fileset id="fileset1" name="Spring Sample" removed="false">
+          <file>file://$MODULE_DIR$/samples/spring/webroot/WEB-INF/applicationContext.xml</file>
+          <file>file://$MODULE_DIR$/samples/spring/etc/webstart.spring.xml</file>
+          <file>file://$MODULE_DIR$/samples/spring/webroot/WEB-INF/sample-servlet.xml</file>
+          <file>file://$MODULE_DIR$/samples/spring/webroot/WEB-INF/remoting-servlet.xml</file>
+        </fileset>
+        <options>
+          <option name="enableValidation" value="true" />
+          <option name="reportErrorsAsWarnings" value="true" />
+        </options>
+        <customNs />
+      </configuration>
+    </facet>
+    <facet type="web" name="jsecurity-web">
+      <configuration>
+        <descriptors>
+          <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/samples/web/WEB-INF/web.xml" optional="false" version="2.5" />
+        </descriptors>
+        <webroots>
+          <root url="file://$MODULE_DIR$/samples/web" relative="/" />
+        </webroots>
+        <sourceRoots>
+          <root url="file://$MODULE_DIR$/src" />
+        </sourceRoots>
+        <building>
+          <setting name="EXPLODED_URL" value="file://$MODULE_DIR$/out/exploded/samples/web" />
+          <setting name="EXPLODED_ENABLED" value="true" />
+          <setting name="JAR_URL" value="file://$MODULE_DIR$/out/Quickstart Webapp.war" />
+          <setting name="JAR_ENABLED" value="false" />
+          <setting name="BUILD_MODULE_ON_FRAME_DEACTIVATION" value="false" />
+          <setting name="BUILD_EXTERNAL_DEPENDENCIES" value="false" />
+          <setting name="EXCLUDE_EXPLODED_DIRECTORY" value="true" />
+          <setting name="RUN_JASPER_VALIDATION" value="true" />
+          <setting name="BUILD_ONLY_WEB_RESOURCES" value="false" />
+        </building>
+        <packaging>
+          <containerElement type="module" name="jsecurity">
+            <attribute name="method" value="1" />
+            <attribute name="URI" value="/WEB-INF/classes" />
+          </containerElement>
+          <containerElement type="library" name="all-libs" level="project">
+            <attribute name="method" value="0" />
+            <attribute name="URI" value="&lt;N/A&gt;" />
+          </containerElement>
+          <containerElement type="library" name="quickstart-libs" level="project">
+            <attribute name="method" value="0" />
+            <attribute name="URI" value="/WEB-INF/lib" />
+          </containerElement>
+          <containerElement type="library" level="module">
+            <attribute name="method" value="0" />
+            <attribute name="URI" value="&lt;N/A&gt;" />
+            <url>jar://$APPLICATION_HOME_DIR$/lib/j2ee.jar!/</url>
+          </containerElement>
+        </packaging>
+      </configuration>
+    </facet>
+  </component>
+  <component name="NewModuleRootManager" inherit-compiler-output="false">
+    <output url="file://$MODULE_DIR$/build/classes" />
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/samples/spring-hibernate/WEB-INF/classes" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/samples/spring-hibernate/src" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/samples/spring/etc" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/samples/spring/src" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/support/spring/src" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/support/spring/test" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
+      <excludeFolder url="file://$MODULE_DIR$/build" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="library" name="all-libs" level="project" />
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$APPLICATION_HOME_DIR$/lib/j2ee.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="library" name="quickstart-libs" level="project" />
+    <orderEntryProperties />
+  </component>
+  <component name="copyright">
+    <Base>
+      <setting name="state" value="1" />
+    </Base>
+  </component>
+</module>
+
diff --git a/jsecurity.ipr b/jsecurity.ipr
index 9ec5b7f..166c311 100644
--- a/jsecurity.ipr
+++ b/jsecurity.ipr
@@ -1,533 +1,533 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<project relativePaths="false" version="4">

-  <component name="AntConfiguration">

-    <defaultAnt bundledAnt="true" />

-    <buildFile url="file://$PROJECT_DIR$/build.xml">

-      <additionalClassPath />

-      <antReference projectDefault="true" />

-      <customJdkName value="" />

-      <maximumHeapSize value="128" />

-      <properties />

-    </buildFile>

-  </component>

-  <component name="BuildJarProjectSettings">

-    <option name="BUILD_JARS_ON_MAKE" value="false" />

-  </component>

-  <component name="CodeStyleProjectProfileManger">

-    <option name="PROJECT_PROFILE" />

-    <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />

-  </component>

-  <component name="CodeStyleSettingsManager">

-    <option name="PER_PROJECT_SETTINGS" />

-    <option name="USE_PER_PROJECT_SETTINGS" value="false" />

-  </component>

-  <component name="CompilerConfiguration">

-    <option name="DEFAULT_COMPILER" value="Javac" />

-    <option name="DEPLOY_AFTER_MAKE" value="0" />

-    <resourceExtensions>

-      <entry name=".+\.(properties|xml|html|dtd|tld)" />

-      <entry name=".+\.(gif|png|jpeg|jpg)" />

-    </resourceExtensions>

-    <wildcardResourcePatterns>

-      <entry name="?*.properties" />

-      <entry name="?*.xml" />

-      <entry name="?*.gif" />

-      <entry name="?*.png" />

-      <entry name="?*.jpeg" />

-      <entry name="?*.jpg" />

-      <entry name="?*.html" />

-      <entry name="?*.dtd" />

-      <entry name="?*.tld" />

-    </wildcardResourcePatterns>

-  </component>

-  <component name="DependenciesAnalyzeManager">

-    <option name="myForwardDirection" value="false" />

-  </component>

-  <component name="DependencyValidationManager">

-    <option name="SKIP_IMPORT_STATEMENTS" value="false" />

-  </component>

-  <component name="EclipseCompilerSettings">

-    <option name="DEBUGGING_INFO" value="true" />

-    <option name="GENERATE_NO_WARNINGS" value="true" />

-    <option name="DEPRECATION" value="false" />

-    <option name="ADDITIONAL_OPTIONS_STRING" value="" />

-    <option name="MAXIMUM_HEAP_SIZE" value="128" />

-  </component>

-  <component name="EclipseEmbeddedCompilerSettings">

-    <option name="DEBUGGING_INFO" value="true" />

-    <option name="GENERATE_NO_WARNINGS" value="true" />

-    <option name="DEPRECATION" value="false" />

-    <option name="ADDITIONAL_OPTIONS_STRING" value="" />

-    <option name="MAXIMUM_HEAP_SIZE" value="128" />

-  </component>

-  <component name="EntryPointsManager">

-    <entry_points version="2.0" />

-  </component>

-  <component name="ExportToHTMLSettings">

-    <option name="PRINT_LINE_NUMBERS" value="false" />

-    <option name="OPEN_IN_BROWSER" value="false" />

-    <option name="OUTPUT_DIRECTORY" />

-  </component>

-  <component name="FacetAutodetectingManager">

-    <autodetection-disabled>

-      <facet-type id="web">

-        <modules>

-          <module name="jsecurity" />

-        </modules>

-      </facet-type>

-    </autodetection-disabled>

-  </component>

-  <component name="IdProvider" IDEtalkID="AA26C3B0305A759EFA1939838DE6155E" />

-  <component name="InspectionProjectProfileManager">

-    <option name="PROJECT_PROFILE" value="Project Default" />

-    <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />

-    <scopes />

-    <profiles>

-      <profile version="1.0" is_locked="false">

-        <option name="myName" value="Project Default" />

-        <option name="myLocal" value="false" />

-      </profile>

-    </profiles>

-    <list size="0" />

-  </component>

-  <component name="JavacSettings">

-    <option name="DEBUGGING_INFO" value="true" />

-    <option name="GENERATE_NO_WARNINGS" value="false" />

-    <option name="DEPRECATION" value="true" />

-    <option name="ADDITIONAL_OPTIONS_STRING" value="" />

-    <option name="MAXIMUM_HEAP_SIZE" value="128" />

-  </component>

-  <component name="JavadocGenerationManager">

-    <option name="OUTPUT_DIRECTORY" />

-    <option name="OPTION_SCOPE" value="protected" />

-    <option name="OPTION_HIERARCHY" value="true" />

-    <option name="OPTION_NAVIGATOR" value="true" />

-    <option name="OPTION_INDEX" value="true" />

-    <option name="OPTION_SEPARATE_INDEX" value="true" />

-    <option name="OPTION_DOCUMENT_TAG_USE" value="false" />

-    <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />

-    <option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />

-    <option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />

-    <option name="OPTION_DEPRECATED_LIST" value="true" />

-    <option name="OTHER_OPTIONS" value="" />

-    <option name="HEAP_SIZE" />

-    <option name="LOCALE" />

-    <option name="OPEN_IN_BROWSER" value="true" />

-  </component>

-  <component name="JikesSettings">

-    <option name="JIKES_PATH" value="" />

-    <option name="DEBUGGING_INFO" value="true" />

-    <option name="DEPRECATION" value="true" />

-    <option name="GENERATE_NO_WARNINGS" value="false" />

-    <option name="IS_EMACS_ERRORS_MODE" value="true" />

-    <option name="ADDITIONAL_OPTIONS_STRING" value="" />

-  </component>

-  <component name="LogConsolePreferences">

-    <option name="FILTER_ERRORS" value="false" />

-    <option name="FILTER_WARNINGS" value="false" />

-    <option name="FILTER_INFO" value="true" />

-    <option name="CUSTOM_FILTER" />

-  </component>

-  <component name="MavenBuildProjectComponent">

-    <option name="mavenExecutable" value="" />

-    <option name="Settings File" value="" />

-    <option name="mavenCommandLineParams" value="" />

-    <option name="vmOptions" value="" />

-    <option name="useMavenEmbedder" value="false" />

-    <option name="useFilter" value="false" />

-    <option name="Batch Mode" value="false" />

-    <option name="Check Plugin Updates" value="false" />

-    <option name="Debug" value="false" />

-    <option name="Errors" value="false" />

-    <option name="Fail At End" value="false" />

-    <option name="Fail Fast" value="false" />

-    <option name="Fail Never" value="false" />

-    <option name="Lax Checksums" value="false" />

-    <option name="No Plugin Registry" value="false" />

-    <option name="No Plugin Updates" value="false" />

-    <option name="Non Recursive" value="false" />

-    <option name="Offline" value="false" />

-    <option name="Reactor" value="false" />

-    <option name="Strict Checksums" value="false" />

-    <option name="Update Plugins" value="false" />

-    <option name="Update Snapshots" value="false" />

-    <option name="Skip Tests" value="false" />

-    <pom-list />

-  </component>

-  <component name="Palette2">

-    <group name="Swing">

-      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />

-      </item>

-      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />

-      </item>

-      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />

-      </item>

-      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">

-        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />

-      </item>

-      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />

-        <initial-values>

-          <property name="text" value="Button" />

-        </initial-values>

-      </item>

-      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />

-        <initial-values>

-          <property name="text" value="RadioButton" />

-        </initial-values>

-      </item>

-      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />

-        <initial-values>

-          <property name="text" value="CheckBox" />

-        </initial-values>

-      </item>

-      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />

-        <initial-values>

-          <property name="text" value="Label" />

-        </initial-values>

-      </item>

-      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">

-          <preferred-size width="150" height="-1" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">

-          <preferred-size width="150" height="-1" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">

-          <preferred-size width="150" height="-1" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">

-          <preferred-size width="150" height="50" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">

-          <preferred-size width="150" height="50" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">

-          <preferred-size width="150" height="50" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />

-      </item>

-      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">

-          <preferred-size width="150" height="50" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">

-          <preferred-size width="150" height="50" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">

-          <preferred-size width="150" height="50" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">

-          <preferred-size width="200" height="200" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">

-          <preferred-size width="200" height="200" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">

-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />

-      </item>

-      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />

-      </item>

-      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />

-      </item>

-      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />

-      </item>

-      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">

-          <preferred-size width="-1" height="20" />

-        </default-constraints>

-      </item>

-      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">

-        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />

-      </item>

-      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">

-        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />

-      </item>

-    </group>

-  </component>

-  <component name="ProjectFileVersion" converted="true" />

-  <component name="ProjectModuleManager">

-    <modules>

-      <module fileurl="file://$PROJECT_DIR$/jsecurity.iml" filepath="$PROJECT_DIR$/jsecurity.iml" />

-      <module fileurl="file://$PROJECT_DIR$/samples/quickstart/quickstart.iml" filepath="$PROJECT_DIR$/samples/quickstart/quickstart.iml" />

-      <module fileurl="file://$PROJECT_DIR$/samples/standalone/standalone.iml" filepath="$PROJECT_DIR$/samples/standalone/standalone.iml" />

-    </modules>

-  </component>

-  <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true" project-jdk-name="1.5" project-jdk-type="JavaSDK">

-    <output url="file://$PROJECT_DIR$/build/idea" />

-  </component>

-  <component name="ResourceManagerContainer">

-    <option name="myResourceBundles">

-      <value>

-        <list size="0" />

-      </value>

-    </option>

-  </component>

-  <component name="RmicSettings">

-    <option name="IS_EANABLED" value="false" />

-    <option name="DEBUGGING_INFO" value="true" />

-    <option name="GENERATE_NO_WARNINGS" value="false" />

-    <option name="GENERATE_IIOP_STUBS" value="false" />

-    <option name="ADDITIONAL_OPTIONS_STRING" value="" />

-  </component>

-  <component name="SvnBranchConfigurationManager">

-    <option name="myConfigurationMap">

-      <map>

-        <entry key="$PROJECT_DIR$">

-          <value>

-            <SvnBranchConfiguration>

-              <option name="branchUrls">

-                <list>

-                  <option value="https://jsecurity.svn.sourceforge.net/svnroot/jsecurity/branches" />

-                  <option value="https://jsecurity.svn.sourceforge.net/svnroot/jsecurity/tags" />

-                </list>

-              </option>

-              <option name="trunkUrl" value="https://jsecurity.svn.sourceforge.net/svnroot/jsecurity/trunk" />

-            </SvnBranchConfiguration>

-          </value>

-        </entry>

-      </map>

-    </option>

-  </component>

-  <component name="VcsDirectoryMappings">

-    <mapping directory="" vcs="svn" />

-  </component>

-  <component name="WebServicesPlugin" addRequiredLibraries="true" />

-  <component name="com.intellij.jsf.UserDefinedFacesConfigs">

-    <option name="USER_DEFINED_CONFIGS">

-      <value>

-        <list size="0" />

-      </value>

-    </option>

-  </component>

-  <component name="copyright">

-    <Base>

-      <setting name="state" value="1" />

-    </Base>

-    <LanguageOptions name="HTML">

-      <option name="templateOptions">

-        <value>

-          <option name="block" value="true" />

-          <option name="separateBefore" value="false" />

-          <option name="separateAfter" value="false" />

-          <option name="prefixLines" value="true" />

-          <option name="lenBefore" value="80" />

-          <option name="lenAfter" value="80" />

-          <option name="box" value="false" />

-          <option name="filler" value=" " />

-        </value>

-      </option>

-      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />

-      <option name="keyword" value="Copyright" />

-      <option name="fileTypeOverride" value="2" />

-      <option name="relativeBefore" value="true" />

-      <option name="addBlankAfter" value="true" />

-      <option name="fileLocation" value="1" />

-      <option name="useAlternate" value="false" />

-    </LanguageOptions>

-    <LanguageOptions name="JAVA">

-      <option name="templateOptions">

-        <value>

-          <option name="block" value="true" />

-          <option name="separateBefore" value="false" />

-          <option name="separateAfter" value="false" />

-          <option name="prefixLines" value="true" />

-          <option name="lenBefore" value="80" />

-          <option name="lenAfter" value="80" />

-          <option name="box" value="false" />

-          <option name="filler" value=" " />

-        </value>

-      </option>

-      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />

-      <option name="keyword" value="Copyright" />

-      <option name="fileTypeOverride" value="2" />

-      <option name="relativeBefore" value="true" />

-      <option name="addBlankAfter" value="true" />

-      <option name="fileLocation" value="1" />

-      <option name="useAlternate" value="false" />

-    </LanguageOptions>

-    <LanguageOptions name="JSP">

-      <option name="templateOptions">

-        <value>

-          <option name="block" value="true" />

-          <option name="separateBefore" value="false" />

-          <option name="separateAfter" value="false" />

-          <option name="prefixLines" value="true" />

-          <option name="lenBefore" value="80" />

-          <option name="lenAfter" value="80" />

-          <option name="box" value="false" />

-          <option name="filler" value=" " />

-        </value>

-      </option>

-      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />

-      <option name="keyword" value="Copyright" />

-      <option name="fileTypeOverride" value="2" />

-      <option name="relativeBefore" value="true" />

-      <option name="addBlankAfter" value="true" />

-      <option name="fileLocation" value="1" />

-      <option name="useAlternate" value="false" />

-    </LanguageOptions>

-    <LanguageOptions name="JavaScript">

-      <option name="templateOptions">

-        <value>

-          <option name="block" value="true" />

-          <option name="separateBefore" value="false" />

-          <option name="separateAfter" value="false" />

-          <option name="prefixLines" value="true" />

-          <option name="lenBefore" value="80" />

-          <option name="lenAfter" value="80" />

-          <option name="box" value="false" />

-          <option name="filler" value=" " />

-        </value>

-      </option>

-      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />

-      <option name="keyword" value="Copyright" />

-      <option name="fileTypeOverride" value="2" />

-      <option name="relativeBefore" value="true" />

-      <option name="addBlankAfter" value="true" />

-      <option name="fileLocation" value="1" />

-      <option name="useAlternate" value="false" />

-    </LanguageOptions>

-    <LanguageOptions name="Properties">

-      <option name="templateOptions">

-        <value>

-          <option name="block" value="true" />

-          <option name="separateBefore" value="false" />

-          <option name="separateAfter" value="false" />

-          <option name="prefixLines" value="true" />

-          <option name="lenBefore" value="80" />

-          <option name="lenAfter" value="80" />

-          <option name="box" value="false" />

-          <option name="filler" value=" " />

-        </value>

-      </option>

-      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />

-      <option name="keyword" value="Copyright" />

-      <option name="fileTypeOverride" value="2" />

-      <option name="relativeBefore" value="true" />

-      <option name="addBlankAfter" value="true" />

-      <option name="fileLocation" value="1" />

-      <option name="useAlternate" value="false" />

-    </LanguageOptions>

-    <LanguageOptions name="XML">

-      <option name="templateOptions">

-        <value>

-          <option name="block" value="true" />

-          <option name="separateBefore" value="false" />

-          <option name="separateAfter" value="false" />

-          <option name="prefixLines" value="true" />

-          <option name="lenBefore" value="80" />

-          <option name="lenAfter" value="80" />

-          <option name="box" value="false" />

-          <option name="filler" value=" " />

-        </value>

-      </option>

-      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />

-      <option name="keyword" value="Copyright" />

-      <option name="fileTypeOverride" value="2" />

-      <option name="relativeBefore" value="true" />

-      <option name="addBlankAfter" value="true" />

-      <option name="fileLocation" value="1" />

-      <option name="useAlternate" value="false" />

-    </LanguageOptions>

-    <LanguageOptions name="__TEMPLATE__">

-      <option name="templateOptions">

-        <value>

-          <option name="block" value="true" />

-          <option name="separateBefore" value="false" />

-          <option name="separateAfter" value="false" />

-          <option name="prefixLines" value="true" />

-          <option name="lenBefore" value="80" />

-          <option name="lenAfter" value="80" />

-          <option name="box" value="false" />

-          <option name="filler" value=" " />

-        </value>

-      </option>

-      <option name="notice" value="Licensed to the Apache Software Foundation (ASF) under one &#10;or more contributor license agreements.  See the NOTICE file&#10;distributed with this work for additional information&#10;regarding copyright ownership.  The ASF licenses this file&#10;to you under the Apache License, Version 2.0 (the &#10;&quot;License&quot;); you may not use this file except in compliance &#10;with the License.  You may obtain a copy of the License at&#10;&#10;    http://www.apache.org/licenses/LICENSE-2.0&#10;&#10;Unless required by applicable law or agreed to in writing,&#10;software distributed under the License is distributed on an&#10;&quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&#10;KIND, either express or implied.  See the License for the&#10;specific language governing permissions and limitations&#10;under the License." />

-      <option name="keyword" value="Copyright" />

-      <option name="fileTypeOverride" value="4" />

-      <option name="relativeBefore" value="true" />

-      <option name="addBlankAfter" value="false" />

-      <option name="fileLocation" value="1" />

-      <option name="useAlternate" value="false" />

-    </LanguageOptions>

-  </component>

-  <component name="libraryTable">

-    <library name="all-libs">

-      <CLASSES>

-        <root url="jar://$PROJECT_DIR$/lib/test/dom4j.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/servlet-api.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/junit.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/spring.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/backport-util-concurrent.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/ehcache.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/jsp-api.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/asm.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/jstl.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/geronimo-jta_1.0.1B_spec.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/commons-beanutils.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/retroweaver-rt.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/log4j.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/quartz.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/hsqldb.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/hibernate.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/docbook-libs.zip!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/spring-webmvc.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/commons-logging.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/asm-util.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/commons-collections.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/asm-commons.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/antlr.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/standard.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/cglib.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/easymockclassextension.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/retroweaver.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/asm-attrs.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/asm-tree.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/test/easymock.jar!/" />

-      </CLASSES>

-      <JAVADOC />

-      <SOURCES />

-    </library>

-    <library name="quickstart-libs">

-      <CLASSES>

-        <root url="jar://$PROJECT_DIR$/lib/samples/commons-logging.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/samples/ehcache.jar!/" />

-        <root url="jar://$PROJECT_DIR$/lib/samples/backport-util-concurrent.jar!/" />

-      </CLASSES>

-      <JAVADOC />

-      <SOURCES />

-    </library>

-  </component>

-</project>

-

+<?xml version="1.0" encoding="UTF-8"?>
+<project relativePaths="false" version="4">
+  <component name="AntConfiguration">
+    <defaultAnt bundledAnt="true" />
+    <buildFile url="file://$PROJECT_DIR$/build.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
+  </component>
+  <component name="BuildJarProjectSettings">
+    <option name="BUILD_JARS_ON_MAKE" value="false" />
+  </component>
+  <component name="CodeStyleProjectProfileManger">
+    <option name="PROJECT_PROFILE" />
+    <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
+  </component>
+  <component name="CodeStyleSettingsManager">
+    <option name="PER_PROJECT_SETTINGS" />
+    <option name="USE_PER_PROJECT_SETTINGS" value="false" />
+  </component>
+  <component name="CompilerConfiguration">
+    <option name="DEFAULT_COMPILER" value="Javac" />
+    <option name="DEPLOY_AFTER_MAKE" value="0" />
+    <resourceExtensions>
+      <entry name=".+\.(properties|xml|html|dtd|tld)" />
+      <entry name=".+\.(gif|png|jpeg|jpg)" />
+    </resourceExtensions>
+    <wildcardResourcePatterns>
+      <entry name="?*.properties" />
+      <entry name="?*.xml" />
+      <entry name="?*.gif" />
+      <entry name="?*.png" />
+      <entry name="?*.jpeg" />
+      <entry name="?*.jpg" />
+      <entry name="?*.html" />
+      <entry name="?*.dtd" />
+      <entry name="?*.tld" />
+    </wildcardResourcePatterns>
+  </component>
+  <component name="DependenciesAnalyzeManager">
+    <option name="myForwardDirection" value="false" />
+  </component>
+  <component name="DependencyValidationManager">
+    <option name="SKIP_IMPORT_STATEMENTS" value="false" />
+  </component>
+  <component name="EclipseCompilerSettings">
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="true" />
+    <option name="DEPRECATION" value="false" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+    <option name="MAXIMUM_HEAP_SIZE" value="128" />
+  </component>
+  <component name="EclipseEmbeddedCompilerSettings">
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="true" />
+    <option name="DEPRECATION" value="false" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+    <option name="MAXIMUM_HEAP_SIZE" value="128" />
+  </component>
+  <component name="EntryPointsManager">
+    <entry_points version="2.0" />
+  </component>
+  <component name="ExportToHTMLSettings">
+    <option name="PRINT_LINE_NUMBERS" value="false" />
+    <option name="OPEN_IN_BROWSER" value="false" />
+    <option name="OUTPUT_DIRECTORY" />
+  </component>
+  <component name="FacetAutodetectingManager">
+    <autodetection-disabled>
+      <facet-type id="web">
+        <modules>
+          <module name="jsecurity" />
+        </modules>
+      </facet-type>
+    </autodetection-disabled>
+  </component>
+  <component name="IdProvider" IDEtalkID="AA26C3B0305A759EFA1939838DE6155E" />
+  <component name="InspectionProjectProfileManager">
+    <option name="PROJECT_PROFILE" value="Project Default" />
+    <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
+    <scopes />
+    <profiles>
+      <profile version="1.0" is_locked="false">
+        <option name="myName" value="Project Default" />
+        <option name="myLocal" value="false" />
+      </profile>
+    </profiles>
+    <list size="0" />
+  </component>
+  <component name="JavacSettings">
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="DEPRECATION" value="true" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+    <option name="MAXIMUM_HEAP_SIZE" value="128" />
+  </component>
+  <component name="JavadocGenerationManager">
+    <option name="OUTPUT_DIRECTORY" />
+    <option name="OPTION_SCOPE" value="protected" />
+    <option name="OPTION_HIERARCHY" value="true" />
+    <option name="OPTION_NAVIGATOR" value="true" />
+    <option name="OPTION_INDEX" value="true" />
+    <option name="OPTION_SEPARATE_INDEX" value="true" />
+    <option name="OPTION_DOCUMENT_TAG_USE" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
+    <option name="OPTION_DEPRECATED_LIST" value="true" />
+    <option name="OTHER_OPTIONS" value="" />
+    <option name="HEAP_SIZE" />
+    <option name="LOCALE" />
+    <option name="OPEN_IN_BROWSER" value="true" />
+  </component>
+  <component name="JikesSettings">
+    <option name="JIKES_PATH" value="" />
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="DEPRECATION" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="IS_EMACS_ERRORS_MODE" value="true" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+  </component>
+  <component name="LogConsolePreferences">
+    <option name="FILTER_ERRORS" value="false" />
+    <option name="FILTER_WARNINGS" value="false" />
+    <option name="FILTER_INFO" value="true" />
+    <option name="CUSTOM_FILTER" />
+  </component>
+  <component name="MavenBuildProjectComponent">
+    <option name="mavenExecutable" value="" />
+    <option name="Settings File" value="" />
+    <option name="mavenCommandLineParams" value="" />
+    <option name="vmOptions" value="" />
+    <option name="useMavenEmbedder" value="false" />
+    <option name="useFilter" value="false" />
+    <option name="Batch Mode" value="false" />
+    <option name="Check Plugin Updates" value="false" />
+    <option name="Debug" value="false" />
+    <option name="Errors" value="false" />
+    <option name="Fail At End" value="false" />
+    <option name="Fail Fast" value="false" />
+    <option name="Fail Never" value="false" />
+    <option name="Lax Checksums" value="false" />
+    <option name="No Plugin Registry" value="false" />
+    <option name="No Plugin Updates" value="false" />
+    <option name="Non Recursive" value="false" />
+    <option name="Offline" value="false" />
+    <option name="Reactor" value="false" />
+    <option name="Strict Checksums" value="false" />
+    <option name="Update Plugins" value="false" />
+    <option name="Update Snapshots" value="false" />
+    <option name="Skip Tests" value="false" />
+    <pom-list />
+  </component>
+  <component name="Palette2">
+    <group name="Swing">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
+      </item>
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
+        <initial-values>
+          <property name="text" value="Button" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="RadioButton" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="CheckBox" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="Label" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
+          <preferred-size width="-1" height="20" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
+      </item>
+    </group>
+  </component>
+  <component name="ProjectFileVersion" converted="true" />
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/jsecurity.iml" filepath="$PROJECT_DIR$/jsecurity.iml" />
+      <module fileurl="file://$PROJECT_DIR$/samples/quickstart/quickstart.iml" filepath="$PROJECT_DIR$/samples/quickstart/quickstart.iml" />
+      <module fileurl="file://$PROJECT_DIR$/samples/standalone/standalone.iml" filepath="$PROJECT_DIR$/samples/standalone/standalone.iml" />
+    </modules>
+  </component>
+  <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true" project-jdk-name="1.5" project-jdk-type="JavaSDK">
+    <output url="file://$PROJECT_DIR$/build/idea" />
+  </component>
+  <component name="ResourceManagerContainer">
+    <option name="myResourceBundles">
+      <value>
+        <list size="0" />
+      </value>
+    </option>
+  </component>
+  <component name="RmicSettings">
+    <option name="IS_EANABLED" value="false" />
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="GENERATE_IIOP_STUBS" value="false" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+  </component>
+  <component name="SvnBranchConfigurationManager">
+    <option name="myConfigurationMap">
+      <map>
+        <entry key="$PROJECT_DIR$">
+          <value>
+            <SvnBranchConfiguration>
+              <option name="branchUrls">
+                <list>
+                  <option value="https://jsecurity.svn.sourceforge.net/svnroot/jsecurity/branches" />
+                  <option value="https://jsecurity.svn.sourceforge.net/svnroot/jsecurity/tags" />
+                </list>
+              </option>
+              <option name="trunkUrl" value="https://jsecurity.svn.sourceforge.net/svnroot/jsecurity/trunk" />
+            </SvnBranchConfiguration>
+          </value>
+        </entry>
+      </map>
+    </option>
+  </component>
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="svn" />
+  </component>
+  <component name="WebServicesPlugin" addRequiredLibraries="true" />
+  <component name="com.intellij.jsf.UserDefinedFacesConfigs">
+    <option name="USER_DEFINED_CONFIGS">
+      <value>
+        <list size="0" />
+      </value>
+    </option>
+  </component>
+  <component name="copyright">
+    <Base>
+      <setting name="state" value="1" />
+    </Base>
+    <LanguageOptions name="HTML">
+      <option name="templateOptions">
+        <value>
+          <option name="block" value="true" />
+          <option name="separateBefore" value="false" />
+          <option name="separateAfter" value="false" />
+          <option name="prefixLines" value="true" />
+          <option name="lenBefore" value="80" />
+          <option name="lenAfter" value="80" />
+          <option name="box" value="false" />
+          <option name="filler" value=" " />
+        </value>
+      </option>
+      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />
+      <option name="keyword" value="Copyright" />
+      <option name="fileTypeOverride" value="2" />
+      <option name="relativeBefore" value="true" />
+      <option name="addBlankAfter" value="true" />
+      <option name="fileLocation" value="1" />
+      <option name="useAlternate" value="false" />
+    </LanguageOptions>
+    <LanguageOptions name="JAVA">
+      <option name="templateOptions">
+        <value>
+          <option name="block" value="true" />
+          <option name="separateBefore" value="false" />
+          <option name="separateAfter" value="false" />
+          <option name="prefixLines" value="true" />
+          <option name="lenBefore" value="80" />
+          <option name="lenAfter" value="80" />
+          <option name="box" value="false" />
+          <option name="filler" value=" " />
+        </value>
+      </option>
+      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />
+      <option name="keyword" value="Copyright" />
+      <option name="fileTypeOverride" value="2" />
+      <option name="relativeBefore" value="true" />
+      <option name="addBlankAfter" value="true" />
+      <option name="fileLocation" value="1" />
+      <option name="useAlternate" value="false" />
+    </LanguageOptions>
+    <LanguageOptions name="JSP">
+      <option name="templateOptions">
+        <value>
+          <option name="block" value="true" />
+          <option name="separateBefore" value="false" />
+          <option name="separateAfter" value="false" />
+          <option name="prefixLines" value="true" />
+          <option name="lenBefore" value="80" />
+          <option name="lenAfter" value="80" />
+          <option name="box" value="false" />
+          <option name="filler" value=" " />
+        </value>
+      </option>
+      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />
+      <option name="keyword" value="Copyright" />
+      <option name="fileTypeOverride" value="2" />
+      <option name="relativeBefore" value="true" />
+      <option name="addBlankAfter" value="true" />
+      <option name="fileLocation" value="1" />
+      <option name="useAlternate" value="false" />
+    </LanguageOptions>
+    <LanguageOptions name="JavaScript">
+      <option name="templateOptions">
+        <value>
+          <option name="block" value="true" />
+          <option name="separateBefore" value="false" />
+          <option name="separateAfter" value="false" />
+          <option name="prefixLines" value="true" />
+          <option name="lenBefore" value="80" />
+          <option name="lenAfter" value="80" />
+          <option name="box" value="false" />
+          <option name="filler" value=" " />
+        </value>
+      </option>
+      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />
+      <option name="keyword" value="Copyright" />
+      <option name="fileTypeOverride" value="2" />
+      <option name="relativeBefore" value="true" />
+      <option name="addBlankAfter" value="true" />
+      <option name="fileLocation" value="1" />
+      <option name="useAlternate" value="false" />
+    </LanguageOptions>
+    <LanguageOptions name="Properties">
+      <option name="templateOptions">
+        <value>
+          <option name="block" value="true" />
+          <option name="separateBefore" value="false" />
+          <option name="separateAfter" value="false" />
+          <option name="prefixLines" value="true" />
+          <option name="lenBefore" value="80" />
+          <option name="lenAfter" value="80" />
+          <option name="box" value="false" />
+          <option name="filler" value=" " />
+        </value>
+      </option>
+      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />
+      <option name="keyword" value="Copyright" />
+      <option name="fileTypeOverride" value="2" />
+      <option name="relativeBefore" value="true" />
+      <option name="addBlankAfter" value="true" />
+      <option name="fileLocation" value="1" />
+      <option name="useAlternate" value="false" />
+    </LanguageOptions>
+    <LanguageOptions name="XML">
+      <option name="templateOptions">
+        <value>
+          <option name="block" value="true" />
+          <option name="separateBefore" value="false" />
+          <option name="separateAfter" value="false" />
+          <option name="prefixLines" value="true" />
+          <option name="lenBefore" value="80" />
+          <option name="lenAfter" value="80" />
+          <option name="box" value="false" />
+          <option name="filler" value=" " />
+        </value>
+      </option>
+      <option name="notice" value="Copyright (c) &amp;#36;today.year, Your Corporation. All Rights Reserved." />
+      <option name="keyword" value="Copyright" />
+      <option name="fileTypeOverride" value="2" />
+      <option name="relativeBefore" value="true" />
+      <option name="addBlankAfter" value="true" />
+      <option name="fileLocation" value="1" />
+      <option name="useAlternate" value="false" />
+    </LanguageOptions>
+    <LanguageOptions name="__TEMPLATE__">
+      <option name="templateOptions">
+        <value>
+          <option name="block" value="true" />
+          <option name="separateBefore" value="false" />
+          <option name="separateAfter" value="false" />
+          <option name="prefixLines" value="true" />
+          <option name="lenBefore" value="80" />
+          <option name="lenAfter" value="80" />
+          <option name="box" value="false" />
+          <option name="filler" value=" " />
+        </value>
+      </option>
+      <option name="notice" value="Licensed to the Apache Software Foundation (ASF) under one &#10;or more contributor license agreements.  See the NOTICE file&#10;distributed with this work for additional information&#10;regarding copyright ownership.  The ASF licenses this file&#10;to you under the Apache License, Version 2.0 (the &#10;&quot;License&quot;); you may not use this file except in compliance &#10;with the License.  You may obtain a copy of the License at&#10;&#10;    http://www.apache.org/licenses/LICENSE-2.0&#10;&#10;Unless required by applicable law or agreed to in writing,&#10;software distributed under the License is distributed on an&#10;&quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&#10;KIND, either express or implied.  See the License for the&#10;specific language governing permissions and limitations&#10;under the License." />
+      <option name="keyword" value="Copyright" />
+      <option name="fileTypeOverride" value="4" />
+      <option name="relativeBefore" value="true" />
+      <option name="addBlankAfter" value="false" />
+      <option name="fileLocation" value="1" />
+      <option name="useAlternate" value="false" />
+    </LanguageOptions>
+  </component>
+  <component name="libraryTable">
+    <library name="all-libs">
+      <CLASSES>
+        <root url="jar://$PROJECT_DIR$/lib/test/dom4j.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/servlet-api.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/junit.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/spring.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/backport-util-concurrent.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/ehcache.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/jsp-api.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/asm.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/jstl.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/geronimo-jta_1.0.1B_spec.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/commons-beanutils.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/retroweaver-rt.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/log4j.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/quartz.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/hsqldb.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/hibernate.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/docbook-libs.zip!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/spring-webmvc.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/commons-logging.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/asm-util.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/commons-collections.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/asm-commons.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/antlr.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/standard.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/cglib.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/easymockclassextension.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/retroweaver.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/asm-attrs.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/asm-tree.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/test/easymock.jar!/" />
+      </CLASSES>
+      <JAVADOC />
+      <SOURCES />
+    </library>
+    <library name="quickstart-libs">
+      <CLASSES>
+        <root url="jar://$PROJECT_DIR$/lib/samples/commons-logging.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/samples/ehcache.jar!/" />
+        <root url="jar://$PROJECT_DIR$/lib/samples/backport-util-concurrent.jar!/" />
+      </CLASSES>
+      <JAVADOC />
+      <SOURCES />
+    </library>
+  </component>
+</project>
+
diff --git a/samples/quickstart/quickstart.iml b/samples/quickstart/quickstart.iml
index 7dec2d5..7a4900b 100644
--- a/samples/quickstart/quickstart.iml
+++ b/samples/quickstart/quickstart.iml
@@ -1,20 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<module relativePaths="true" type="JAVA_MODULE" version="4">

-  <component name="NewModuleRootManager" inherit-compiler-output="true">

-    <exclude-output />

-    <content url="file://$MODULE_DIR$">

-      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />

-    </content>

-    <orderEntry type="inheritedJdk" />

-    <orderEntry type="sourceFolder" forTests="false" />

-    <orderEntry type="module" module-name="jsecurity" />

-    <orderEntry type="library" name="quickstart-libs" level="project" />

-    <orderEntryProperties />

-  </component>

-  <component name="copyright">

-    <Base>

-      <setting name="state" value="1" />

-    </Base>

-  </component>

-</module>

-

+<?xml version="1.0" encoding="UTF-8"?>
+<module relativePaths="true" type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="jsecurity" />
+    <orderEntry type="library" name="quickstart-libs" level="project" />
+    <orderEntryProperties />
+  </component>
+  <component name="copyright">
+    <Base>
+      <setting name="state" value="1" />
+    </Base>
+  </component>
+</module>
+
diff --git a/samples/standalone/standalone.iml b/samples/standalone/standalone.iml
index fb06cd7..a76be68 100644
--- a/samples/standalone/standalone.iml
+++ b/samples/standalone/standalone.iml
@@ -1,19 +1,19 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<module relativePaths="true" type="JAVA_MODULE" version="4">

-  <component name="NewModuleRootManager" inherit-compiler-output="true">

-    <exclude-output />

-    <content url="file://$MODULE_DIR$">

-      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />

-    </content>

-    <orderEntry type="inheritedJdk" />

-    <orderEntry type="sourceFolder" forTests="false" />

-    <orderEntry type="module" module-name="jsecurity" />

-    <orderEntryProperties />

-  </component>

-  <component name="copyright">

-    <Base>

-      <setting name="state" value="1" />

-    </Base>

-  </component>

-</module>

-

+<?xml version="1.0" encoding="UTF-8"?>
+<module relativePaths="true" type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="jsecurity" />
+    <orderEntryProperties />
+  </component>
+  <component name="copyright">
+    <Base>
+      <setting name="state" value="1" />
+    </Base>
+  </component>
+</module>
+
diff --git a/src/org/jsecurity/realm/AuthorizingRealm.java b/src/org/jsecurity/realm/AuthorizingRealm.java
index 7bbd208..3b33038 100644
--- a/src/org/jsecurity/realm/AuthorizingRealm.java
+++ b/src/org/jsecurity/realm/AuthorizingRealm.java
@@ -309,9 +309,14 @@
      * @param principals the principals of the account for which to clear the cached AuthorizationInfo.
      */
     protected void clearCachedAuthorizationInfo(PrincipalCollection principals) {
-        Object key = getAuthorizationCacheKey(principals);
+        if ( principals == null ) {
+            return;
+        }
+
         Cache cache = getAuthorizationCache();
-        if (key != null && cache != null) {
+        //cache instance will be non-null if caching is enabled:
+        if (cache != null) {
+            Object key = getAuthorizationCacheKey(principals);
             cache.remove(key);
         }
     }
@@ -607,11 +612,6 @@
      * @param principals the application-specific Subject/user identifier.
      */
     public void onLogout(PrincipalCollection principals) {
-        Cache cache = getAuthorizationCache();
-        //cache instance will be non-null if caching is enabled:
-        if (cache != null && principals != null) {
-            Object key = getAuthorizationCacheKey(principals);
-            cache.remove(key);
-        }
+        clearCachedAuthorizationInfo(principals);
     }
 }