Refactored JAAS project.