text:
<?xml version="1.0" encoding="UTF-8"?>
<workbench progressCount="58" version="2.0">
<workbenchAdvisor/>
<window height="768" maximized="true" width="1024" x="60" y="60">
<fastViewData fastViewLocation="1024"/>
<perspectiveBar>
<itemSize x="160"/>
</perspectiveBar>
<coolbarLayout>
<coolItem id="group.file" itemType="typeGroupMarker"/>
<coolItem id="org.eclipse.ui.workbench.file" itemType="typeToolBarContribution" x="126" y="22"/>
<coolItem id="additions" itemType="typeGroupMarker"/>
<coolItem id="org.eclipse.debug.ui.launchActionSet" itemType="typeToolBarContribution" x="141" y="22"/>
<coolItem id="org.eclipse.jst.j2ee.J2eeMainActionSet" itemType="typeToolBarContribution" x="99" y="22"/>
<coolItem id="org.eclipse.search.searchActionSet" itemType="typeToolBarContribution" x="103" y="22"/>
<coolItem id="org.eclipse.ui.edit.text.actionSet.presentation" itemType="typeToolBarContribution" x="130" y="22"/>
<coolItem id="org.eclipse.wst.server.ui.internal.webbrowser.actionSet" itemType="typeToolBarContribution" x="38" y="22"/>
<coolItem id="org.eclipse.wst.ws.explorer.explorer" itemType="typeToolBarContribution" x="38" y="22"/>
<coolItem id="org.eclipse.wst.xml.ui.perspective.NewFileToolBar" itemType="typeToolBarContribution" x="-1" y="-1"/>
<coolItem id="org.eclipse.wst.xml.ui.design.DesignToolBar" itemType="typeToolBarContribution" x="61" y="22"/>
<coolItem id="group.nav" itemType="typeGroupMarker"/>
<coolItem id="org.eclipse.ui.workbench.navigate" itemType="typeToolBarContribution" x="206" y="22"/>
<coolItem id="group.editor" itemType="typeGroupMarker"/>
<coolItem id="org.eclipse.jdt.ui.CompilationUnitEditor" itemType="typeToolBarContribution" x="-1" y="-1"/>
<coolItem id="org.eclipse.jdt.ui.ClassFileEditor" itemType="typePlaceholder" x="-1" y="-1"/>
<coolItem id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" itemType="typePlaceholder" x="-1" y="-1"/>
<coolItem id="group.help" itemType="typeGroupMarker"/>
<coolItem id="org.eclipse.ui.workbench.help" itemType="typeToolBarContribution" x="-1" y="-1"/>
</coolbarLayout>
<page aggregateWorkingSetId="Aggregate for window 1398097711825" focus="true" label="Workspace - Java EE">
<editors>
<editorArea activeWorkbook="DefaultEditorWorkbook">
<info part="DefaultEditorWorkbook">
<folder appearance="1" expanded="2">
<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory">
<part id="0"/>
</presentation>
</folder>
</info>
</editorArea>
<editor activePart="true" focus="true" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="Proxy.java" partName="Proxy.java" path="C:/Users/Dimitris/Desktop/SoftEng/sipproxy/gov/nist/sip/proxy/Proxy.java" title="Proxy.java" tooltip="sipproxy/gov/nist/sip/proxy/Proxy.java" workbook="DefaultEditorWorkbook">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/sipproxy/gov/nist/sip/proxy/Proxy.java"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="38830" selectionTopPixel="18660"/>
</editor>
</editors>
<views>
<view id="org.eclipse.ui.navigator.ProjectExplorer" partName="Project Explorer">
<viewState CommonNavigator.LINKING_ENABLED="0" org.eclipse.ui.navigator.resources.workingSets.showTopLevelWorkingSets="0"/>
</view>
<view id="org.eclipse.ui.views.AllMarkersView" partName="Markers">
<viewState PRIMARY_SORT_FIELD="org.eclipse.ui.ide.allSeverityField" categoryGroup="org.eclipse.ui.ide.type" markerContentGenerator="org.eclipse.ui.ide.allMarkersGenerator" partName="Markers">
<columnWidths org.eclipse.ui.ide.allSeverityField="400" org.eclipse.ui.ide.locationField="120" org.eclipse.ui.ide.markerType="120" org.eclipse.ui.ide.pathField="160" org.eclipse.ui.ide.resourceField="120"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.allSeverityField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/>
</viewState>
</view>
<view id="org.eclipse.wst.common.snippets.internal.ui.SnippetsView" partName="Snippets">
<viewState>
<entry expansion="false" extent="20" maximum="100" minimum="0" pinned="false" value="0">
<entry selection="0"/>
<entry selection="0"/>
<entry selection="0"/>
<entry selection="0"/>
<entry selection="0"/>
<entry selection="0"/>
<entry selection="0"/>
</entry>
</viewState>
</view>
<view id="org.eclipse.ui.views.ProgressView" partName="Progress">
<viewState/>
</view>
<view id="org.eclipse.ui.views.PropertySheet" partName="Properties">
<viewState/>
</view>
<view id="org.eclipse.datatools.connectivity.DataSourceExplorerNavigator" partName="Data Source Explorer">
<viewState CommonNavigator.LINKING_ENABLED="0" showCategories="true"/>
</view>
<view id="org.eclipse.ui.console.ConsoleView" partName="Console">
<viewState/>
</view>
<view id="org.eclipse.wst.server.ui.ServersView" partName="Servers">
<viewState CommonNavigator.LINKING_ENABLED="0"/>
</view>
</views>
<perspectives activePart="org.eclipse.jdt.ui.CompilationUnitEditor" activePerspective="org.eclipse.jst.j2ee.J2EEPerspective">
<perspective editorAreaTrimState="2" editorAreaVisible="1" fixed="0" version="0.016">
<descriptor class="org.eclipse.jst.j2ee.internal.perspective.J2EEPerspective" id="org.eclipse.jst.j2ee.J2EEPerspective" label="Java EE"/>
<alwaysOnActionSet id="org.eclipse.mylyn.context.ui.actionSet"/>
<alwaysOnActionSet id="org.eclipse.mylyn.doc.actionSet"/>
<alwaysOnActionSet id="org.eclipse.mylyn.tasks.ui.navigation"/>
<alwaysOnActionSet id="org.eclipse.ui.cheatsheets.actionSet"/>
<alwaysOnActionSet id="org.eclipse.rse.core.search.searchActionSet"/>
<alwaysOnActionSet id="org.eclipse.search.searchActionSet"/>
<alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.annotationNavigation"/>
<alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.navigation"/>
<alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo"/>
<alwaysOnActionSet id="org.eclipse.ui.externaltools.ExternalToolsSet"/>
<alwaysOnActionSet id="org.eclipse.ui.actionSet.keyBindings"/>
<alwaysOnActionSet id="org.eclipse.ui.actionSet.openFiles"/>
<alwaysOnActionSet id="org.eclipse.jst.j2ee.J2eeMainActionSet"/>
<alwaysOnActionSet id="org.eclipse.jdt.ui.JavaActionSet"/>
<alwaysOnActionSet id="org.eclipse.debug.ui.launchActionSet"/>
<alwaysOnActionSet id="org.eclipse.debug.ui.debugActionSet"/>
<alwaysOnActionSet id="org.eclipse.ui.NavigateActionSet"/>
<alwaysOnActionSet id="org.eclipse.wst.server.ui.internal.webbrowser.actionSet"/>
<alwaysOnActionSet id="org.eclipse.debug.ui.breakpointActionSet"/>
<alwaysOnActionSet id="org.eclipse.wst.ws.explorer.explorer"/>
<show_view_action id="org.eclipse.ui.navigator.ProjectExplorer"/>
<show_view_action id="org.eclipse.wst.server.ui.ServersView"/>
<show_view_action id="org.eclipse.datatools.connectivity.DataSourceExplorerNavigator"/>
<show_view_action id="org.eclipse.ui.views.BookmarkView"/>
<show_view_action id="org.eclipse.ui.views.ContentOutline"/>
<show_view_action id="org.eclipse.ui.views.PropertySheet"/>
<show_view_action id="org.eclipse.ui.views.ResourceNavigator"/>
<show_view_action id="org.eclipse.wst.common.snippets.internal.ui.SnippetsView"/>
<show_view_action id="org.eclipse.ui.views.AllMarkersView"/>
<show_view_action id="org.eclipse.mylyn.tasks.ui.views.tasks"/>
<show_view_action id="org.eclipse.search.ui.views.SearchView"/>
<show_view_action id="org.eclipse.ui.console.ConsoleView"/>
<new_wizard_action id="org.eclipse.jpt.jpa.ui.wizard.newJpaProject"/>
<new_wizard_action id="org.eclipse.jst.j2ee.ui.project.facet.EarProjectWizard"/>
<new_wizard_action id="org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard"/>
<new_wizard_action id="org.eclipse.jst.ejb.ui.project.facet.EjbProjectWizard"/>
<new_wizard_action id="org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorProjectWizard"/>
<new_wizard_action id="org.eclipse.jst.j2ee.ui.project.facet.appclient.AppClientProjectWizard"/>
<new_wizard_action id="org.eclipse.wst.web.ui.internal.wizards.SimpleWebProjectWizard"/>
<new_wizard_action id="org.eclipse.jpt.ui.wizard.newJpaProject"/>
<new_wizard_action id="org.eclipse.jst.servlet.ui.internal.wizard.AddServletWizard"/>
<new_wizard_action id="org.eclipse.jst.ejb.ui.internal.wizard.AddSessionBeanWizard"/>
<new_wizard_action id="org.eclipse.jst.ejb.ui.internal.wizard.AddMessageDrivenBeanWizard"/>
<new_wizard_action id="org.eclipse.jpt.ui.wizard.newEntity"/>
<new_wizard_action id="org.eclipse.jst.ws.creation.ui.wizard.serverwizard"/>
<new_wizard_action id="org.eclipse.ui.wizards.new.folder"/>
<new_wizard_action id="org.eclipse.ui.wizards.new.file"/>
<perspective_action id="org.eclipse.jpt.ui.jpaPerspective"/>
<perspective_action id="org.eclipse.debug.ui.DebugPerspective"/>
<perspective_action id="org.eclipse.jdt.ui.JavaPerspective"/>
<perspective_action id="org.eclipse.ui.resourcePerspective"/>
<perspective_action id="org.eclipse.wst.web.ui.webDevPerspective"/>
<hide_toolbar_item_id id="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<hide_toolbar_item_id id="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
<view id="org.eclipse.ui.console.ConsoleView"/>
<view id="org.eclipse.ui.navigator.ProjectExplorer"/>
<fastViewBars>
<fastViewBar fastViewLocation="1024" id="bottomRight" orientation="256" selectedTabId="org.eclipse.ui.console.ConsoleView" style="0">
<fastViews>
<view id="org.eclipse.ui.views.AllMarkersView" ratio="0.3"/>
<view id="org.eclipse.ui.views.PropertySheet" ratio="0.3"/>
<view id="org.eclipse.wst.server.ui.ServersView" ratio="0.3"/>
<view id="org.eclipse.datatools.connectivity.DataSourceExplorerNavigator" ratio="0.3"/>
<view id="org.eclipse.wst.common.snippets.internal.ui.SnippetsView" ratio="0.3"/>
<view id="org.eclipse.ui.views.ProgressView" ratio="0.29901424"/>
</fastViews>
</fastViewBar>
</fastViewBars>
<layout>
<mainWindow>
<info folder="true" part="topLeft">
<folder activePageID="org.eclipse.ui.navigator.ProjectExplorer" appearance="2" expanded="2">
<page content="org.eclipse.ui.navigator.ProjectExplorer" label="Project Explorer"/>
<page content="org.eclipse.ui.views.ResourceNavigator" label="LabelNotFound"/>
<page content="org.eclipse.jdt.ui.TypeHierarchy" label="LabelNotFound"/>
<page content="org.eclipse.jdt.ui.PackagesView" label="LabelNotFound"/>
<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory">
<part id="0"/>
</presentation>
</folder>
</info>
<info folder="true" part="org.eclipse.ui.internal.ViewStack@6fa41b4" ratio="0.749499" ratioLeft="748" ratioRight="250" relationship="2" relative="topLeft">
<folder appearance="2" expanded="2">
<page content="org.eclipse.help.ui.HelpView" label="LabelNotFound"/>
<page content="org.eclipse.ui.internal.introview" label="LabelNotFound"/>
<page content="org.eclipse.ui.cheatsheets.views.CheatSheetView" label="LabelNotFound"/>
<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"/>
</folder>
</info>
<info part="org.eclipse.ui.editorss" ratio="0.25091672" ratioLeft="479" ratioRight="1430" relationship="2" relative="topLeft"/>
<info folder="true" part="bottomRight" ratio="0.6992126" ratioLeft="444" ratioRight="191" relationship="4" relative="org.eclipse.ui.editorss">
<folder appearance="2" expanded="2">
<page content="org.eclipse.ui.views.AllMarkersView" label="LabelNotFound"/>
<page content="org.eclipse.ui.views.PropertySheet" label="LabelNotFound"/>
<page content="org.eclipse.wst.server.ui.ServersView" label="LabelNotFound"/>
<page content="org.eclipse.datatools.connectivity.DataSourceExplorerNavigator" label="LabelNotFound"/>
<page content="org.eclipse.wst.common.snippets.internal.ui.SnippetsView" label="LabelNotFound"/>
<page content="org.eclipse.ui.views.ProblemView" label="LabelNotFound"/>
<page content="org.eclipse.ui.views.TaskList" label="LabelNotFound"/>
<page content="org.eclipse.ui.views.BookmarkView" label="LabelNotFound"/>
<page content="org.eclipse.ui.views.ProgressView" label="LabelNotFound"/>
<page content="org.eclipse.search.ui.views.SearchView" label="LabelNotFound"/>
<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"/>
</folder>
</info>
<info folder="true" part="topRight" ratio="0.69959944" ratioLeft="524" ratioRight="225" relationship="2" relative="org.eclipse.ui.editorss">
<folder appearance="2" expanded="2">
<page content="org.eclipse.ui.views.ContentOutline" label="LabelNotFound"/>
<page content="org.eclipse.mylyn.tasks.ui.views.tasks" label="LabelNotFound"/>
<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"/>
</folder>
</info>
<info folder="true" part="org.eclipse.ui.internal.ViewStack@72aad2bf" ratio="0.7491785" ratioLeft="684" ratioRight="229" relationship="4" relative="org.eclipse.ui.editorss">
<folder activePageID="org.eclipse.ui.console.ConsoleView" appearance="2" expanded="2">
<page content="org.eclipse.ui.console.ConsoleView" label="Console"/>
<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory">
<part id="0"/>
</presentation>
</folder>
</info>
</mainWindow>
</layout>
</perspective>
</perspectives>
<workingSets/>
<navigationHistory>
<editors>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/sipproxy/gov/nist/sip/proxy/Proxy.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/Global.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/AuthenticationSplash.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/BlockedList.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/BlockManager.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/DatabaseServer.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/FavoriteContact.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/FavoriteList.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/FavoriteManager.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/ForwardCalls.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/ForwardManager.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/GuiManager.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/LoginUser.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/MenuBar.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/PolicyList.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/PolicyManager.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/RegisterUser.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/imp/MenuBar.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" path="/SipCommunicator-Fall05/sip-communicator.xml"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" path="/sipproxy/gov/nist/sip/proxy/configuration/configuration.xml"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/SipCommunicator-Fall05/net/java/sip/communicator/common/NetworkAddressManager.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/sipproxy/gov/nist/sip/proxy/CallEnd.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/sipproxy/gov/nist/sip/proxy/CallStart.java"/>
<editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" path="/sipproxy/gov/nist/sip/proxy/BillingServer.java"/>
</editors>
<item historyLabel="BlockedList.java" index="3">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="BlockManager.java" index="4">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="DatabaseServer.java" index="5">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="FavoriteContact.java" index="6">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="FavoriteList.java" index="7">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="FavoriteManager.java" index="8">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="ForwardCalls.java" index="9">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="ForwardManager.java" index="10">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Global.java" index="1">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="GuiManager.java" index="11">
<position/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="LoginUser.java" index="12">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="MenuBar.java" index="13">
<position info="not_deleted" x="3043" y="0"/>
</item>
<item historyLabel="LoginUser.java" index="12">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="PolicyList.java" index="14">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="LoginUser.java" index="12">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="PolicyManager.java" index="15">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="RegisterUser.java" index="16">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="MenuBar.java" index="17">
<position info="not_deleted" x="5" y="0"/>
</item>
<item historyLabel="GuiManager.java" index="11">
<position info="not_deleted" x="3043" y="0"/>
</item>
<item historyLabel="MenuBar.java" index="17">
<position info="not_deleted" x="5" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="AuthenticationSplash.java" index="2">
<position info="not_deleted" x="3049" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="sip-communicator.xml" index="18">
<position info="not_deleted" x="1303" y="0"/>
</item>
<item historyLabel="configuration.xml" index="19">
<position info="not_deleted" x="133" y="0"/>
</item>
<item historyLabel="sip-communicator.xml" index="18">
<position info="not_deleted" x="1303" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="118" y="0"/>
</item>
<item historyLabel="NetworkAddressManager.java" index="20">
<position info="not_deleted" x="12552" y="0"/>
</item>
<item historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="38830" y="0"/>
</item>
<item historyLabel="CallEnd.java" index="21">
<position info="not_deleted" x="5" y="0"/>
</item>
<item historyLabel="CallStart.java" index="22">
<position info="not_deleted" x="5" y="0"/>
</item>
<item historyLabel="CallEnd.java" index="21">
<position info="not_deleted" x="372" y="0"/>
</item>
<item historyLabel="BillingServer.java" index="23">
<position info="not_deleted" x="3341" y="0"/>
</item>
<item historyLabel="CallEnd.java" index="21">
<position info="not_deleted" x="372" y="0"/>
</item>
<item historyLabel="CallStart.java" index="22">
<position info="not_deleted" x="5" y="0"/>
</item>
<item historyLabel="CallEnd.java" index="21">
<position info="not_deleted" x="372" y="0"/>
</item>
<item active="true" historyLabel="Proxy.java" index="0">
<position info="not_deleted" x="38830" y="0"/>
</item>
</navigationHistory>
<input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/" type="8"/>
</page>
<workbenchWindowAdvisor/>
<actionBarAdvisor/>
<trimLayout>
<trimArea IMemento.internal.id="128">
<trimItem IMemento.internal.id="org.eclipse.ui.internal.WorkbenchWindow.topBar"/>
<trimItem IMemento.internal.id="org.eclipse.mylyn.tasks.ui.trim.container"/>
</trimArea>
<trimArea IMemento.internal.id="1024">
<trimItem IMemento.internal.id="org.eclise.ui.internal.FastViewBar"/>
<trimItem IMemento.internal.id="org.eclipse.jface.action.StatusLineManager"/>
<trimItem IMemento.internal.id="org.eclipse.ui.internal.progress.ProgressRegion"/>
<trimItem IMemento.internal.id="bottomRight"/>
</trimArea>
</trimLayout>
</window>
<mruList>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="BillingServer.java" tooltip="sipproxy/gov/nist/sip/proxy/BillingServer.java">
<persistable path="/sipproxy/gov/nist/sip/proxy/BillingServer.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="CallStart.java" tooltip="sipproxy/gov/nist/sip/proxy/CallStart.java">
<persistable path="/sipproxy/gov/nist/sip/proxy/CallStart.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="CallEnd.java" tooltip="sipproxy/gov/nist/sip/proxy/CallEnd.java">
<persistable path="/sipproxy/gov/nist/sip/proxy/CallEnd.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="NetworkAddressManager.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/common/NetworkAddressManager.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/common/NetworkAddressManager.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" name="configuration.xml" tooltip="sipproxy/gov/nist/sip/proxy/configuration/configuration.xml">
<persistable path="/sipproxy/gov/nist/sip/proxy/configuration/configuration.xml"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" name="sip-communicator.xml" tooltip="SipCommunicator-Fall05/sip-communicator.xml">
<persistable path="/SipCommunicator-Fall05/sip-communicator.xml"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="AuthenticationSplash.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/AuthenticationSplash.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/AuthenticationSplash.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="GuiManager.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/GuiManager.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/GuiManager.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="MenuBar.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/imp/MenuBar.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/imp/MenuBar.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="RegisterUser.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/RegisterUser.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/RegisterUser.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="PolicyManager.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/PolicyManager.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/PolicyManager.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="PolicyList.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/PolicyList.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/PolicyList.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="MenuBar.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/MenuBar.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/MenuBar.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="LoginUser.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/LoginUser.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/LoginUser.java"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.jdt.ui.CompilationUnitEditor" name="Global.java" tooltip="SipCommunicator-Fall05/net/java/sip/communicator/gui/Global.java">
<persistable path="/SipCommunicator-Fall05/net/java/sip/communicator/gui/Global.java"/>
</file>
</mruList>
</workbench>


text:
import {ObjectId} from 'mongodb'
import {isArray, omit, map} from 'lodash'

const removeFieldsFromEntity = (entity, omitFields) => {
  return  omit(entity, omitFields)
}

export const makeFindAllHandler = (Repository, omitFields = []) => {
  return function (req, res, next) {
    const repo = new Repository(req.database)
    const promises = [
      repo.findAll(req.filters, req.pagination),
      repo.count(req.filters)
    ]
    return Promise.all(promises)
      .then(function (data) {
        const entities = map(data[0], entity => removeFieldsFromEntity(entity, omitFields))
        const totalCount = data[1]
        res.result = {
          totalCount,
          entities
        }
        next()
      })
      .catch(next)
  }
}

export const makeFindById = (Repository, omitFields = []) => {
  return function (req, res, next) {
    const repo = new Repository(req.database)
    return repo.findById(req.params.id)
      .then(function (entity) {
        if (entity) {
          const ret = removeFieldsFromEntity(entity, omitFields)
          res.result = ret
          next()
        } else {
          return next({httpStatus: 404, message: 'entity not found'})
        }
        next()
      })
      .catch(next)
  }
}

export const makeHandlePost = (Repository) => {
  return function (req, res, next) {
    const repo = new Repository(req.database)
    const entity = req.entity
    if (!entity.id) {
      entity.id = new ObjectId()
    }
    const now = new Date()
    entity.createdOn = now
    entity.modifiedOn = now

    return repo.insert(entity)
      .then(function () {
        res.result = entity // return untransformed entity so id is used instead of _id
        next()
      })
      .catch(next)
  }
}

export const makeHandlePut = (Repository) => {
  return function (req, res, next) {
    const repo = new Repository(req.database)
    const entity = req.entity

    entity.modifiedOn = new Date()

    return repo.update(entity)
      .then(function (writeResult) {
        res.result = entity // return untransformed entity so id is used instead of _id
        next()
      })
      .catch(next)
  }
}

export const makeHandleArchive = (Repository) => {
  return function (req, res, next) {
    const repo = new Repository(req.database)
    if (!isArray(req.body) || req.body.length === 0) {
      return next({httpStatus: 400, message: 'no ids provided in the body'})
    } else {
      const ids = req.body.map(ObjectId)
      return repo.archive(ids)
        .then(function () {
          res.status(204)
          res.result = '' // no content
          next()
        })
        .catch(next)
    }
  }
}

export const makeHandleRestore = (Repository) => {
  return function (req, res, next) {
    const repo = new Repository(req.database)
    if (!isArray(req.body) || req.body.length === 0) {
      return next({httpStatus: 400, message: 'no ids provided in the body'})
    } else {
      const ids = req.body.map(ObjectId)
      return repo.restore(ids)
        .then(function () {
          res.status(204)
          res.result = '' // no content
          next()
        })
        .catch(next)
    }
  }
}

export const makeHandleDelete = (Repository) => {
  return function (req, res, next) {
    const repo = new Repository(req.database)
    if (!isArray(req.body) || req.body.length === 0) {
      return next({httpStatus: 400, message: 'no ids provided in the body'})
    } else {
      const ids = req.body.map(ObjectId)
      return repo.delete(ids)
        .then(function () {
          res.status(204)
          res.result = '' // no content
          next()
        })
        .catch(next)
    }
  }
}

export function setAuthor (req, res, next) {
  const {entity, user} = req
  entity.ownerId = ObjectId(user.id)
  entity.authorName = user.firstName + ' ' + user.lastName
  entity.authorRole = user.organismRole
  next()
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@color/white" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:orientation="vertical" >

        <include layout="@layout/sys_back_title" />

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingLeft="10.0dip"
            android:paddingRight="10.0dip"
            android:paddingTop="15.0dip" >

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/user_center_account_bg" >

                <TextView
                    android:id="@+id/textview_tel"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:visibility="visible" />

                <EditText
                    android:id="@+id/edittext_tel"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_toRightOf="@+id/textview_tel"
                    android:background="@null"
                    android:inputType="textPhonetic"
                    android:cursorVisible="true"
                    android:drawableLeft="@drawable/user_center_pwd_icon"
                    android:drawablePadding="10.0dip"
                    android:hint="@string/app_user_reg2_tel_hint"
                    android:paddingBottom="12.0dip"
                    android:paddingLeft="5dip"
                    android:paddingRight="30.0dip"
                    android:paddingTop="12.0dip"
                    android:singleLine="true"
                    android:textColor="@color/black"
                    android:textColorHint="@color/text_hint_color"
                    android:textCursorDrawable="@null"
                    android:textSize="14.0dip" />

                <ImageView
                    android:id="@+id/button_account_clear"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignRight="@id/edittext_tel"
                    android:layout_centerVertical="true"
                    android:paddingRight="4.0dip"
                    android:src="@drawable/button_clear"
                    android:visibility="visible" />
            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/app_user_reg2_phoneno_layout"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/user_center_phoneno_bg"
                android:visibility="gone" >

                <TextView
                    android:id="@+id/phone_no"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:visibility="visible" />

                <EditText
                    android:id="@+id/edittext_phone_no"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_toRightOf="@+id/phone_no"
                    android:inputType="phone"
                    android:background="@null"
                    android:cursorVisible="true"
                    android:drawableLeft="@drawable/user_center_pwd_icon"
                    android:drawablePadding="10.0dip"
                    android:hint="@string/sys_content_phone_edittext_hint"
                    android:paddingBottom="12.0dip"
                    android:paddingLeft="3dip"
                    android:paddingRight="30.0dip"
                    android:paddingTop="12.0dip"
                    android:singleLine="true"
                    android:textColor="@color/black"
                    android:textColorHint="@color/text_hint_color"
                    android:textCursorDrawable="@null"
                    android:textSize="14.0dip" />

                <ImageView
                    android:id="@+id/button_account_clear2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignRight="@id/edittext_phone_no"
                    android:layout_centerVertical="true"
                    android:paddingRight="4.0dip"
                    android:src="@drawable/button_clear"
                    android:visibility="visible" />
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/user_center_pwd_bg"
                android:paddingLeft="5.0dip" >

                <TextView
                    android:id="@+id/pwd"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:text="@string/personnal_user_login_pwd_pre"
                    android:visibility="gone" />

                <EditText
                    android:id="@+id/edittext_email"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_toRightOf="@+id/pwd"
                    android:background="@null"
                    android:inputType="textEmailAddress"
                    android:cursorVisible="true"
                    android:drawableLeft="@drawable/user_center_pwd_icon"
                    android:drawablePadding="10.0dip"
                    android:hint="@string/sys_common_email_edittext_hint"
                    android:paddingBottom="12.0dip"
                    android:paddingRight="30.0dip"
                    android:paddingTop="12.0dip"
                    android:singleLine="true"
                    android:textColor="@color/black"
                    android:textColorHint="@color/text_hint_color"
                    android:textCursorDrawable="@null"
                    android:textSize="14.0dip" />

                <ImageView
                    android:id="@+id/button_pwd_clear"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignRight="@+id/edittext_email"
                    android:layout_centerVertical="true"
                    android:src="@drawable/button_clear"
                    android:visibility="visible" />
            </RelativeLayout>

            <LinearLayout
                android:id="@+id/verification_code"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="5.0dip"
                android:background="@drawable/user_center_etidttext_bg"
                android:gravity="center_vertical"
                android:visibility="gone" >

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/personnal_user_login_verification_code"
                    android:textColor="#ff9a9a9a" />

                <EditText
                    android:id="@+id/edittext_verfication_code"
                    android:layout_width="0.0dip"
                    android:layout_height="wrap_content"
                    android:layout_weight="1.0"
                    android:background="@null"
                    android:cursorVisible="true"
                    android:hint="@string/personnal_user_login_verification_hint"
                    android:inputType="textVisiblePassword"
                    android:paddingBottom="12.0dip"
                    android:paddingTop="12.0dip"
                    android:textColor="@color/black"
                    android:textColorHint="@color/text_hint_color"
                    android:textSize="14.0dip" />

                <ImageView
                    android:id="@+id/imageview_verfication_code"
                    android:layout_width="70.0dip"
                    android:layout_height="fill_parent"
                    android:layout_marginLeft="10.0dip"
                    android:scaleType="fitXY" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="15.0dip" >

                <Button
                    android:id="@+id/reg_next"
                    android:layout_width="0.0dip"
                    android:layout_height="wrap_content"
                    android:layout_weight="1.0"
                    android:background="@drawable/button_green_enhance"
                    android:padding="13.0dip"
                    android:text="@string/sys_common_reg"
                    android:textColor="@color/ems_white" />
            </LinearLayout>
        </LinearLayout>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_marginTop="20.0dip"
            android:background="@drawable/user_login_bottom_bg"
            android:gravity="center_horizontal"
            android:orientation="vertical"
            android:visibility="gone" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="25.0dip"
                android:background="@drawable/user_login_text_view_bg"
                android:gravity="center"
                android:paddingLeft="25.0dip"
                android:paddingRight="25.0dip"
                android:text="@string/user_info_activity_broswer"
                android:textColor="@color/white" />

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="15.0dip"
                android:gravity="center"
                android:orientation="horizontal" >

                <Button
                    android:id="@+id/user_login_task"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/user_login_task" />

                <Button
                    android:id="@+id/user_login_privilege"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="20.0dip"
                    android:background="@drawable/user_login_privilege" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

</ScrollView>


text:
function res = fht(X)
    %% Description:
    % Fast Hartley Transform algorithm.This algorithm is faster than simple FFT because it works only in
    % real domain, which involves half the number of multiplications

    %% INPUT:
    % X - an discrete array of values (ordinates)

    %% OUTPUT:
    % HY   - an array of Discrete Hartley Transform values * (ordinates)

    %% Based on:
    % 1. Ronald F. Ullman - "An algorithm for the Fast Hartley Transform"
    % 2. Krzysztof Loryœ - polish notes to the lecture of "Algorithms and
    % Data Structures" held in the Institute of Computer Science,
    % University of Wroclaw

	  %% Author info:
    % [Krzysztof Parjaszewski, University of Wroclaw]
    % As a part of MSc Thesis - "Numerical evaluation of the Hilbert transform used to
    % better understand and solve the Kramers-Kronig relations in nonlinear optics"
    % krzysztof.parjaszewski@gmail.com

    %% The algorithm:
    N = length(X);

    % We precalculate the CAS table for vectors of length less or equal 8:
    CAS = cell(8);
    CAS{1} = cas(0);
    for k=2:8, CAS{k} = cas(2*pi*((0:(k-1))'*(0:(k-1)))/k); end

    % Now we are sure, that X vector is of size M which is a power value of 2.
    DHT = dofht(X,N,CAS);

    % The final vector must be truncated because it was arbitrary enlarged
    % to be with length of power of two
    res = DHT(1:N);
end

function HY = dofht(X,N,CAS)
    %% Recursive, divide & conquer radix-2 Fast Hartley Transform

    %% INPUT:
    % X   - an discrete array of values (ordinates)
    % D   - the length of X vector
    % CAS - the precalculated cell of 1:8-8 matrix for performing the instant FHT

    %% OUTPUT:
    % HY   - an array of Discrete Hartley Transform values * (ordinates)

    % Fast Hartley Trasform for N lower than 8
    if N<=8,
        HY=X * CAS{N} ; % Instant FHT for 8-element array
        return;
    end;
    % We split the input vector into two equal vectors
    X1 = X(1:2:end); X2 = X(2:2:end); % In MATLAB first index equals 1, not 0 - but in literature X1 is called even, X2 - odd indices.

    % Divide & conquer approach
    HT1 = dofht(X1,N/2,CAS);
    HT2 = dofht(X2,N/2,CAS);

    % We precalculate the lower and upper part of the output array
    low    = 1:1:N/2;
    revlow = [1, N/2:-1:2];
    arg    = (2*pi/N).*(low-1);
    CS = cos(arg) .* HT2(low) + sin(arg) .* HT2(revlow);
    H = HT1(low);

    % The lower and upper part of DHT is combined with the following
    % radix-2 way
    HY = [H + CS, H - CS];
end

function res = cas(X), res = cos(X) + sin(X); end


text:
layout: post
microblog: true
audio:
photo:
date: 2012-06-18 20:56:52 -0600
guid: http://craigmcclellan.micro.blog/2012/06/19/t214914616373948419.html
---
Really great rehearsal tonight with @carlcartee, @hebcartee, @Ryanwmitchell, and Eric tonight. So excited for @CRWorldwide 2012!


text:
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;

using Amazon.Runtime;

namespace Amazon.StorageGateway.Model
{
    /// <summary>
    /// Returns information about the  DeleteSnapshotScheduleResult response and response metadata.
    /// </summary>
    public class DeleteSnapshotScheduleResponse : AmazonWebServiceResponse
    {
        private DeleteSnapshotScheduleResult deleteSnapshotScheduleResult;

        /// <summary>
        /// Gets and sets the DeleteSnapshotScheduleResult property.
        /// A JSON object containing the following fields: DeleteSnapshotScheduleOutput$VolumeARN
        /// </summary>
        public DeleteSnapshotScheduleResult DeleteSnapshotScheduleResult
        {
            get
            {
                if(this.deleteSnapshotScheduleResult == null)
                {
                    this.deleteSnapshotScheduleResult = new DeleteSnapshotScheduleResult();
                }

                return this.deleteSnapshotScheduleResult;
            }
            set { this.deleteSnapshotScheduleResult = value; }
        }
    }
}


text:
package mobi.openddr.example.w3c.web.filter;

import java.io.IOException;
import java.util.Properties;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.w3c.ddr.simple.Evidence;
import org.w3c.ddr.simple.PropertyRef;
import org.w3c.ddr.simple.PropertyValue;
import org.w3c.ddr.simple.PropertyValues;
import org.w3c.ddr.simple.Service;
import org.w3c.ddr.simple.ServiceFactory;
import org.w3c.ddr.simple.exception.NameException;

import mobi.openddr.simple.DDRService;
import mobi.openddr.simple.model.ODDRHTTPEvidence;

public class IdentificationFilter implements Filter {

    private static final Logger log = LogManager.getLogger(IdentificationFilter.class);

    private Service identificationService = null;

    public void init(FilterConfig filterConfig) throws ServletException {
	    log.info("Initialize filter");
	    Properties initializationProperties = new Properties();
	    ServletContext context = filterConfig.getServletContext();

	    try {
	        initializationProperties.load(context.getResourceAsStream("/WEB-INF/classes/oddr.properties"));
	        identificationService = ServiceFactory.newService("org.apache.devicemap.simpleddr.DDRService", initializationProperties.getProperty(DDRService.ODDR_VOCABULARY_IRI), initializationProperties);

	    } catch (Exception ex) {
	        throw new RuntimeException(ex);
	    }
    }

    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
    	log.info("Do filter");
    	PropertyRef vendorRef;
	    PropertyRef modelRef;
	    PropertyRef displayWidthRef;
	    PropertyRef displayHeightRef;
	    PropertyRef inputDevicesRef;
	    PropertyRef idRef;
	    PropertyRef tabletRef;
	    PropertyRef wirelessRef;

	    try {
	        vendorRef = identificationService.newPropertyRef("vendor");
	        modelRef = identificationService.newPropertyRef("model");
	        displayWidthRef = identificationService.newPropertyRef("displayWidth");
	        displayHeightRef = identificationService.newPropertyRef("displayHeight");
	        inputDevicesRef = identificationService.newPropertyRef("inputDevices");
	        idRef = identificationService.newPropertyRef("id");
	        tabletRef = identificationService.newPropertyRef("is_tablet");
	        wirelessRef = identificationService.newPropertyRef("is_wireless_device");

	    } catch (NameException ex) {
	        throw new RuntimeException(ex);
	    }

	    PropertyRef[] propertyRefs = new PropertyRef[] {vendorRef, modelRef, displayWidthRef, displayHeightRef, inputDevicesRef,
	                                                    idRef, tabletRef, wirelessRef};
	    Evidence e = new ODDRHTTPEvidence();

	    String ua=((HttpServletRequest)request).getParameter("ua");
	    if(ua==null || ua.isEmpty()) {
	      ua=((HttpServletRequest)request).getHeader("User-Agent");
	    }

	   ((HttpServletRequest)request).setAttribute("oddrUA", ua);

	    e.put("User-Agent", ua);

	    try {
	        PropertyValues propertyValues = identificationService.getPropertyValues(e, propertyRefs);
	        PropertyValue vendor = propertyValues.getValue(vendorRef);
	        PropertyValue model = propertyValues.getValue(modelRef);
	        PropertyValue displayWidth = propertyValues.getValue(displayWidthRef);
	        PropertyValue displayHeight = propertyValues.getValue(displayHeightRef);
	        PropertyValue inputDevices = propertyValues.getValue(inputDevicesRef);
	        PropertyValue id = propertyValues.getValue(idRef);
	        PropertyValue tablet = propertyValues.getValue(tabletRef);
	        PropertyValue wireless = propertyValues.getValue(wirelessRef);

	        if (vendor!=null && vendor.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrVendor", vendor.getString());
	        }
	        if (model!=null && model.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrModel", model.getString());
	        }
	        if (displayWidth!=null && displayWidth.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrDisplayWidth", displayWidth.getInteger());
	        }
	        if (displayWidth!=null && displayHeight.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrDisplayHeight", displayHeight.getInteger());
	        }
	        if (inputDevices!=null && inputDevices.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrInputDevices", inputDevices.getString());
	        }
	        if (id!=null && id.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrId", id.getString());
	        }
	        if (tablet!=null && tablet.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrTablet", tablet.getString());
	        }
	        if (wireless!=null && wireless.exists()) {
	            ((HttpServletRequest)request).setAttribute("oddrWireless", wireless.getString());
	        }

	    } catch (Exception ex) {
	        throw new RuntimeException(ex);
	    }

	    chain.doFilter(request, response);
    }

    public void destroy() {
      log.debug("Destroy Filter");
    }
}


text:
package flex.messaging.services.messaging.adapters;

import flex.messaging.config.ConfigMap;
import flex.messaging.config.ConfigurationConstants;
import flex.messaging.config.DestinationSettings;
import flex.messaging.security.MessagingSecurity;
import flex.messaging.services.ServiceAdapter;
import flex.messaging.services.messaging.Subtopic;

/**
 * Base adapter class for publish/subscribe messaging adapters.  You extend this
 * class if you want to implement your own messaging adapter.  A custom messaging
 * adapter has the ability to implement authorization logic for specific subtopics,
 * and may also control how messages are routed.  A more advanced messaging adapter
 * can take control over the subscription process and have complete control over
 * the subscription process for producers and consumers.
 *

 * All messaging adapters must provide an implementation for the invoke method.
 * A simple invoke implementation which would give you similar functionality as
 * the ActionScriptAdapter is simply:
 *

 *  public Object invoke(Message message)
 *  {
 *       MessageService msgService = (MessageService)service;
 *       msgService.pushMessageToClients(message, true);
 *       msgService.sendPushMessageFromPeer(message, true);
 *       return null;
 *   }
 *

 *

 *

 * This method is called for each data message sent from the client.  It gets
 * a reference to the MessageService which is controlling delivery of messages
 * for this adapter.  It uses the pushMessageToClients method to send the
 * message to all clients connected to this server.  It then uses the
 * sendPushMessageFromPeer method to send the message to other servers which
 * will then route the message to each client connected to those servers.
 * In both cases, we pass the "evalSelector" parameter as true.  This indicates
 * that the message service will only send the message to those clients whose
 * selector pattern evaluates to true for the supplied message.  If you supply
 * false, the selector pattern is ignored and the message is delivered to the clients
 * even if the pattern evaluates to false.
 *

 * The default behavior is for the messaging adapter to use the builtin FDS
 * subscription mechanism.  The client sends subscribe and unsubscribe command
 * messages which are managed by the MessageService, not the adapter.  If you
 * override the "handlesSubscriptions" method to return true, your adapter's
 * manage method is called for each of these command messages instead.  You must
 * then override this method to provide an implementation for these operations.
 * See the docs on the CommandMessage class for details on the message format.
 *

 *
 * @see flex.messaging.services.ServiceAdapter
 * @see flex.messaging.services.MessageService
 * @see flex.messaging.messages.Message
 * @see flex.messaging.messages.CommandMessage
 */
public abstract class MessagingAdapter extends ServiceAdapter implements MessagingSecurity
{
    /**
     * Constraint manager used to assert authorization of send and subscribe related operations.
     */
    private MessagingSecurityConstraintManager constraintManager;

    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
     * Constructs an unmanaged MessagingAdapter instance.
     */
    public MessagingAdapter()
    {
        this(false);
    }

    /**
     * Constructs a MessagingAdapter instance.
     *
     * @param enableManagement true if the MessagingAdapter
     * has a corresponding MBean control for management; otherwise false.
     */
    public MessagingAdapter(boolean enableManagement)
    {
        super(enableManagement);
    }

    //--------------------------------------------------------------------------
    //
    // Initialize, validate, start, and stop methods.
    //
    //--------------------------------------------------------------------------

    /**
     * Initializes the MessagingAdapter with the properties.
     * Subclasses should call super.initialize.
     *
     * @param id Id of the MessagingAdapter.
     * @param properties Properties for the MessagingAdapter.
     */
    public void initialize(String id, ConfigMap properties)
    {
        super.initialize(id, properties);

        if (properties == null || properties.size() == 0)
            return;

        ConfigMap serverSettings = properties.getPropertyAsMap(DestinationSettings.SERVER_ELEMENT, null);
        if (serverSettings != null)
        {
            // Send constraint
            ConfigMap send = serverSettings.getPropertyAsMap(MessagingSecurityConstraintManager.SEND_SECURITY_CONSTRAINT, null);
            if (send != null)
            {
                String ref = send.getPropertyAsString(ConfigurationConstants.REF_ATTR, null);
                if (ref != null)
                {
                    if (constraintManager == null)
                        constraintManager = new MessagingSecurityConstraintManager(getDestination().getService().getMessageBroker());
                    constraintManager.createSendConstraint(ref);
                }
            }

            // Subscribe constraint
            ConfigMap subscribe = serverSettings.getPropertyAsMap(MessagingSecurityConstraintManager.SUBSCRIBE_SECURITY_CONSTRAINT, null);
            if (subscribe != null)
            {
                String ref = subscribe.getPropertyAsString(ConfigurationConstants.REF_ATTR, null);
                if (ref != null)
                {
                    if (constraintManager == null)
                        constraintManager = new MessagingSecurityConstraintManager(getDestination().getService().getMessageBroker());
                    constraintManager.createSubscribeConstraint(ref);
                }
            }
        }
    }

    /**
     * Verifies that the MessagingAdapter is in valid state before
     * it is started. If subclasses override, they must call super.validate().
     */
    protected void validate()
    {
        if (isValid())
            return;

        super.validate();
    }

    //--------------------------------------------------------------------------
    //
    // Public Methods
    //
    //--------------------------------------------------------------------------

    /**
     * Implements flex.messaging.security.MessagingSecurity.
     * This method is invoked before a client subscribe request is processed,
     * so that custom application logic can determine whether the client
     * should be allowed to subscribe to the specified subtopic. You can access
     * the current user via
     * FlexContext.getUserPrincipal().
     *
     * @param subtopic The subtopic the client is attempting to subscribe to.
     * @return true to allow the subscription, false to prevent it.
     */
    public boolean allowSubscribe(Subtopic subtopic)
    {
        return true;
    }

    /**
     * Implements flex.messaging.security.MessagingSecurity.
     * This method is invoked before a client message is sent to a subtopic,
     * so that custom application logic can determine whether the client
     * should be allowed to send to the specified subtopic. You can access
     * the current user via
     * FlexContext.getUserPrincipal().
     *
     * @param subtopic The subtopic the client is attempting to send a message to.
     * @return true to allow the message to be sent, false to prevent it.
     */
    public boolean allowSend(Subtopic subtopic)
    {
        return true;
    }

    /**
     * Gets the MessagingSecurityConstraintManager of the MessagingAdapter.
     *
     * @return The MessagingSecurityConstraintManager of the MessagingAdapter.
     */
    public MessagingSecurityConstraintManager getSecurityConstraintManager()
    {
        return constraintManager;
    }

    /**
     * Sets the MessagingSecurityConstraintManager of the MessagingAdapter.
     *
     * @param constraintManager The MessagingSecurityConstraintManager of the MessagingAdapter.
     */
    public void setSecurityConstraintManager(MessagingSecurityConstraintManager constraintManager)
    {
        this.constraintManager = constraintManager;
    }
}