<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xsi:schemaLocation="
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">

	<bean
		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
	</bean>

<!-- Eric added 04/05/2016  -->

<!-- Asynchronous Non-CAIP Message Mediator configuration. -->
	<bean id="asyncMessageMediator" class="gov.va.med.mediator.client.messagemediator.JmsMessageMediatorDelegate">
		<property name="sendingOrganization" value="${cds.sending.organization}" />
		<property name="sendingApplicationToJmsTemplateMap">
			<util:map>
<!-- 			
				<entry key="TIUHL7">
					<bean parent="vistaBaseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="vistaJndiTemplate" />
								<property name="jndiName" value="jms/fpds/DefaultHl7AckQueue" />
							</bean>
						</property>
					</bean>
				</entry>
-->
				<!--TODO both HDRFTP and FTP map to the same destination - unsure which one will be the final value -->
<!-- 
				<entry key="HDRFTP">
					<bean parent="vistaBaseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="vistaJndiTemplate" />
								<property name="jndiName" value="jms/fpds/FtpHl7AckQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="FTP">
					<bean parent="vistaBaseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="vistaJndiTemplate" />
								<property name="jndiName" value="jms/fpds/FtpHl7AckQueue" />
							</bean>
						</property>
					</bean>
				</entry>
-->
				<entry key="HDRALGY">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/AllergiesQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="HDRADAS">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/AllergyAssessmentQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="HDRPRES">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/PharmacyFullQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="HDRPPAR">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/PharmacyPartialQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="HDRPREF">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/PharmacyRefillQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="HDRVTLS">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/VitalsQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<!-- Adding for HTH -->
				<entry key="HDRVTLS-HTH">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/HomeTeleHealthQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="HTAPPL">
					<bean parent="baseJmsTemplate">
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/HomeTeleHealthSurveyQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<entry key="LA7LAB">
					<bean parent="baseJmsTemplate">
					<property name="defaultDestinationName" value="jms/cds/LabQueue" />
						<property name="defaultDestination">
							<bean class="org.springframework.jndi.JndiObjectFactoryBean">
								<property name="jndiTemplate" ref="jndiTemplate" />
								<property name="jndiName" value="jms/cds/LabQueue" />
							</bean>
						</property>
					</bean>
				</entry>
				<!-- migrated to VHIM <entry key="CHDR_QUEUE"> <bean parent="baseJmsTemplate"> <property name="defaultDestination"> <bean class="org.springframework.jndi.JndiObjectFactoryBean" 
					> <property name="jndiTemplate" ref="jndiTemplate"/> <property name="jndiName" value="jms/cds/ChdrQueue"/> </bean> </property> </bean> </entry> -->
			</util:map>
		</property>
	</bean>

	<!-- Spring JMS Template -->
	<bean id="baseJmsTemplate" class="org.springframework.jms.core.JmsTemplate" abstract="true">
		<property name="connectionFactory" ref="jmsConnectionFactory" />
		<property name="receiveTimeout" value="10000" />
	</bean>
<!-- 
	<bean id="vistaBaseJmsTemplate" class="org.springframework.jms.core.JmsTemplate" abstract="true">
		<property name="connectionFactory" ref="vistaJmsConnectionFactory" />
		<property name="receiveTimeout" value="10000" />
	</bean>
-->
<!-- End of Eric added 04/05/2016  -->


	<bean id="responseErrorSectionExtractor"
		class="gov.va.med.cds.response.util.ResponseErrorSectionExtractor">
		<property name="severityList">
			<list>
				<value>errors</value>
				<value>fatalErrors</value>
				<value>warnings</value>
			</list>
		</property>
	</bean>

	<util:map id="sendingApplicationToErrorQHandlerInfoMap">
		<entry key="HDRPRES">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/ORC-3" />
				<property name="hdrTableName" value="OUTPPHARM.OUTPATIENT_MED_PRM" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
		<entry key="HDRPREF">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/ORC-3" />
				<property name="hdrTableName" value="OUTPPHARM.OUTPATIENT_MED_PRM" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
		<entry key="HDRPPAR">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/ORC-3" />
				<property name="hdrTableName" value="OUTPPHARM.OUTPATIENT_MED_PRM" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
		<entry key="HDRVTLS">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/ORC-3" />
				<property name="hdrTableName" value="VITALS.VITAL" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
		<entry key="HDRALGY">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/OBR-3" />
				<property name="hdrTableName" value="ALLERGIES.ALLERGY" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
		<entry key="HDRADAS">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/OBR-3" />
				<property name="hdrTableName" value="ALLERGIES.ALLERGY_ASSESSMENT" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
		<entry key="HDRVTLS-HTH">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/ORC-3" />
				<property name="hdrTableName" value="VITALS.VITAL" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
		<entry key="LA7LAB">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQHandlerInformation">
				<property name="hl7RecordIdSegment" value="/ORC-3" />
				<property name="hdrTableName" value="LAB.LAB_TEST_PRM" />
				<property name="messageHandler" ref="clinicalMessageHandler" />
			</bean>
		</entry>
	</util:map>

	<!-- If message has one of these sending applications, we know we can toss the message. -->
	<util:list id="knownRejectableSendingAppList" list-class="java.util.ArrayList">
		<value>HDRADRA</value>
		<value>MPI</value>
		<value>MPIF TRIGGER</value>
		<value>HLO PING CLIENT</value>
	</util:list>

	<bean id="clinicalMessageHandler"
		class="gov.va.med.cds.tools.cleanup.errorq.ClinicalMessageHandler">
		<property name="hdrJdbcTemplate" ref="hdrJdbcTemplate" />
		<property name="clinicalMessageCommand" ref="processClinicalMessageCommand" />
		<property name="responseErrorSectionExtractor" ref="responseErrorSectionExtractor" />
	</bean>
<!-- org.apache.commons.dbcp.BasicDataSource is not in common-dbcp2-2.1.jar file - Eric 03/08/2016 -->
<!-- 
	<bean id="hdr2DataSource" class="org.apache.commons.dbcp.BasicDataSource"
-->	
	<bean id="hdr2DataSource" class="org.apache.commons.dbcp2.BasicDataSource"
		destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
		<property name="url" value="${environment.cds.jdbc.url}" />
		<property name="username" value="${environment.cds.jdbc.username}" />
		<property name="password" value="${environment.cds.jdbc.password}" />
		<property name="defaultAutoCommit" value="true" />
		<property name="validationQuery">
			<value>select 1 from dual</value>
		</property>
		<property name="testWhileIdle">
			<value>true</value>
		</property>
	</bean>

	<bean id="hdrNamedParamterJdbcTemplate"
		class="org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate"
		autowire-candidate="false">
		<constructor-arg ref="hdr2DataSource" />
	</bean>

	<bean id="hdrJdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<property name="dataSource" ref="hdr2DataSource" />
	</bean>

<!--  Eric commented out 04/07/2016 -->
<!-- 
	<bean id="processClinicalMessageCommand"
		class="gov.va.med.cds.tools.cleanup.errorq.ProcessClinicalMessageCommand">
		<property name="messageMediator" ref="messageMediator" />
	</bean>
-->
<!--  End of Eric commented out 04/07/2016 -->
<!--  Eric added 04/07/2016 -->

	<bean id="processClinicalMessageCommand"
		class="gov.va.med.cds.tools.cleanup.errorq.ProcessClinicalMessageCommand">
		<property name="messageMediator" ref="asyncMessageMediator" />
	</bean>

<!-- End of Eric added 04/07/2016  -->

	<bean id="errorQueueCleanUpLogger" 
		class="gov.va.med.cds.tools.cleanup.errorq.ErrorQueueCleanUpLogger" scope="prototype" >
		<property name="hdrJdbcTemplate" ref="hdrJdbcTemplate" />
	</bean>

	<bean id="errorQListener" class="gov.va.med.cds.tools.cleanup.errorq.ErrorQListener"
		lazy-init="true">
		<property name="messageParser">
			<bean class="gov.va.med.cds.tools.cleanup.errorq.ErrorQMessageParser">
				<property name="sendingApplicationToErrorQHandlerInfoMap"
					ref="sendingApplicationToErrorQHandlerInfoMap" />
				<property name="facilityIdMap" ref="facilityIdMap" />
				<property name="knownRejectableSendingAppList" ref="knownRejectableSendingAppList" />
		    </bean>
		</property>
		<property name="jmsTemplate" ref="jmsTemplate" />
		<property name="exceptionsMap" ref="exceptionsMap" />
		<property name="reprocessRejectionMap" ref="reprocessRejectionMap" />
		<property name="reprocessList" ref="reprocessList" />
		<property name="removeFromQueueList" ref="removeFromQueueList" />
		<property name="timesProcessed" value="${cds.numtimesprocessed.count}" />
		<property name="messageCounter" ref="messageCounter" />
	</bean>

	<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
		<property name="environment">
			<props>
				<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
				<prop key="java.naming.provider.url">${cds.jndi.provider.url}</prop>
				<prop key="java.naming.security.principal">${cds.appserver.admin.username}</prop>
				<prop key="java.naming.security.credentials">${cds.appserver.admin.password}</prop>
			</props>
		</property>
	</bean>

	<bean id="jmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiTemplate" ref="jndiTemplate" />
		<property name="jndiName" value="jms/cds/CDSClinicalJMSConnectionFactory" />
	</bean>

	<bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiTemplate" ref="jndiTemplate" />
		<property name="jndiName" value="jms/cds/CdsErrorQueue" />
	</bean>
<!-- class="org.springframework.jms.listener.DefaultMessageListenerContainer" -->
	<bean id="listenerContainer"
		class="gov.va.med.cds.tools.cleanup.errorq.ErrorQueueDefaultMessageListenerContainer"
		lazy-init="true">
		<property name="concurrentConsumers" value="${cds.consumer.count}" />
		<property name="connectionFactory" ref="jmsConnectionFactory" />
		<property name="destination" ref="destination" />
		<property name="messageListener" ref="errorQListener" />
		<property name="autoStartup" value="false" />
 		<!--  <property name="messageSelector" value="(CDSNumTimesProcessed IS NULL or CDSNumTimesProcessed &lt;&gt; ${cds.numtimesprocessed.count} )" />  -->
 		<!-- <property name="messageSelector" value="( ( JMSPriority &gt; 0 ) and ( CDSNumTimesProcessed IS NULL or CDSNumTimesProcessed &lt;&gt; ${cds.numtimesprocessed.count} ) )" /> -->
 		<!--  
 		<property name="messageSelector" value="(SendingApp='${msg.sendingapp}') and (( JMSPriority &gt; 3 ) or ( CDSNumTimesProcessed &lt;&gt; ${cds.numtimesprocessed.count} ))" />
 		-->
 		<property name="messageSelector" value="(${jms.message.sendingapp}) and jmsTimestampToken and (( JMSPriority &gt; 3 ) or ( CDSNumTimesProcessed &lt;&gt; ${cds.numtimesprocessed.count} ))" />
 		<!-- 
 		<property name="messageSelector" value="(${jms.message.sendingapp}) and jmsTimestampToken " />
 		-->
		<property name="sessionTransacted" value="true" />
	</bean>

	<bean id="messageCounter" class="gov.va.med.cds.tools.cleanup.errorq.AtomicCounter">
	</bean>
	
	<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
		<property name="connectionFactory" ref="jmsConnectionFactory" />
		<property name="defaultDestination" ref="destination" />
		<property name="explicitQosEnabled" value="true" /> 
	</bean>

	<bean id="queueSender" class="gov.va.med.cds.tools.cleanup.errorq.QueueSender">
		<property name="jmsTemplate" ref="jmsTemplate" />
	</bean>

	<bean id="duplicateSwallowAspect" class="gov.va.med.cds.aspects.exception.SwallowAspect">
		<property name="criteria" value="ORA-00001" /> <!--  Unique constraint violation -->
		<property name="criteriaType" value="MESSAGE" />
	</bean>

	<aop:config>
		<aop:aspect ref="duplicateSwallowAspect">
			<aop:pointcut id="executionOfErrorCheck"
				expression="execution(* *..*.mediator.util.RepsonseErrorSectionExtractor.check*(..))" />
			<aop:around pointcut-ref="executionOfErrorCheck" method="doAround" />
		</aop:aspect>
	</aop:config>

	<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"
		lazy-init="false">
		<property name="locateExistingServerIfPossible" value="true" />
	</bean>

	<bean id="mbeanAdapter" class="org.springframework.jmx.export.MBeanExporter"
		lazy-init="false">
		<property name="beans">
			<map>
				<entry key="errorq-cleanup:name=ErrorQCleanUp" value-ref="errorQCleanUp" />
			</map>
		</property>
		<property name="assembler">
			<bean
				class="org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler">
				<property name="interfaceMappings">
					<props>
						<prop key="ims-migrator:name=ErrorQCleanUp">gov.va.med.cds.tools.cleanup.errorq.ErrorQCleanUpMBeanInterface
						</prop>
					</props>
				</property>
			</bean>
		</property>
		<property name="server" ref="mbeanServer" />
	</bean>
	
	<!-- Need to populate this whenever throwing a exception code is added to errorq cleanup process -->
	<util:map id="exceptionsMap" map-class="java.util.HashMap">
		<entry key="HL7_SUPPORT_HAPI_ENCODE_EXCEPTION" value="Failed in Message Mediator. HL7 message with incorrect format" />
		<entry key="MSH 4.1 and MSH 4.2 in the message are empty" value="Failed in ErrorQ cleanup. HL7 message with empty MSH 4.1 and MSH 4.2" />
		<entry key="MSH 4.1 is empty and not in facilityId map and thus cannot populate the empty PID 3.6.2" value="Failed in ErrorQ cleanup. HL7 message with empty MSH 4.1 and PID 3.6.2" />
		<entry key="DoD Patient with LID and ICN does not have Correlated ID between LID and ICN" value="Failed in ErrorQ cleanup. PSIM Graph Message has DoD Patient with LID and ICN does not have Correlated ID between LID and ICN" />
		<entry key="VA Patient with LID and ICN does not have Correlated ID between LID and ICN" value="Failed in ErrorQ cleanup. PSIM Graph Message has VA Patient with LID and ICN does not have Correlated ID between LID and ICN" />
		<entry key="DoD Patient with only LID, and does not have Correlated ID for LID" value="Failed in ErrorQ cleanup. PSIM Graph Message has DoD Patient with only LID, and does not have Correlated ID for LID" />
		<entry key="Patient has only ICN" value="Failed in ErrorQ cleanup. PSIM Graph Message has Patient with only ICN" />
		<entry key="EncodingNotSupportedException" value="Failed in ErrorQ cleanup. HL7 message encoding failed" />
		<entry key="DataAccessException" value="Failed in ErrorQ cleanup. SQL exception while checking for duplicate in HDRII. Check Errorq cleanup log files." />
		<entry key="HL7Exception" value="Failed in ErrorQ cleanup. HL7 message Parsing failed" />
		<entry key="SchemaValidationException" value="Failed in CDS. HL7 message with missing required fields" />
		<entry key="HDRII_OPERATION_FAILED" value="Failed in CDS. Insert in HDRII database failed" />
	</util:map>

	<util:list id="removeFromQueueList" list-class="java.util.ArrayList">
		<value>HDR2 Integrity constraint violated:  ORA-00001: unique constraint (LAB.LABTSTPRM_RECORDID_UNQ_CK) violated</value>
	</util:list>
		
	<util:map id="reprocessRejectionMap" map-class="java.util.HashMap" key-type="java.lang.String">
		<entry>
			<key><value>ORA-01400: cannot insert NULL into ("MONITOR"."AUDIT_CLOB_STR"."FACILITY_ID")</value></key>
			<value>Failed storing message.  Missing Facility Id (name) in HL7. </value>
		</entry>
	</util:map>

	<util:list id="reprocessList" list-class="java.util.ArrayList">
		<value>rolled back</value>
		<value>rollback</value>
		<value>Rolledback</value>
		<value>BEA</value>
		<value>ORA</value>
		<value>SQL</value>
		<value>JTA</value>
		<value>RollbackException</value>
		<value>TimedOut</value>
		<value>Timeout</value>
		<value>timeout</value>
		<value>timed out</value>
		<value>Error committing transaction</value>
		<value>javax.transaction.SystemException</value>		
	</util:list>

	<util:map id="facilityIdMap" map-class="java.util.HashMap">
		<entry key="521" value="BIRMINGHAM.MED.DNS   " />
		<entry key="619" value="CENTRAL-ALABAMA.MED.DNS   " />
		<entry key="679" value="TUSCALOOSA.MED.DNS   " />
		<entry key="463" value="ANCHORAGE.MED.DNS   " />
		<entry key="644" value="PHOENIX.MED.DNS   " />
		<entry key="649" value="PRESCOTT.MED.DNS   " />
		<entry key="678" value="TUCSON.MED.DNS   " />
		<entry key="564" value="FAYETTVL-AR.MED.DNS   " />
		<entry key="598" value="LITTLE-ROCK.MED.DNS   " />
		<entry key="570" value="FRESNO.MED.DNS   " />
		<entry key="605" value="LOMA-LINDA.MED.DNS   " />
		<entry key="600" value="LONG-BEACH.MED.DNS   " />
		<entry key="612" value="MARTINEZ.MED.DNS   " />
		<entry key="640" value="PALO-ALTO.MED.DNS   " />
		<entry key="664" value="SAN-DIEGO.MED.DNS   " />
		<entry key="662" value="SANFRANCISCO.MED.DNS   " />
		<entry key="691" value="WEST-LA.MED.DNS   " />
		<entry key="554" value="DENVER.MED.DNS   " />
		<entry key="575" value="GRAND-JUNCT.MED.DNS   " />
		<entry key="689" value="WEST-HAVEN.MED.DNS   " />
		<entry key="460" value="WILMINGTON.MED.DNS   " />
		<entry key="516" value="BAY-PINES.MED.DNS   " />
		<entry key="546" value="MIAMI.MED.DNS   " />
		<entry key="573" value="NORTH-FLORIDA.MED.DNS   " />
		<entry key="673" value="TAMPA.MED.DNS   " />
		<entry key="548" value="WEST-PALM.MED.DNS   " />
		<entry key="508" value="ATLANTA.MED.DNS   " />
		<entry key="509" value="AUGUSTA.MED.DNS   " />
		<entry key="557" value="DUBLIN.MED.DNS   " />
		<entry key="459" value="HONOLULU.MED.DNS   " />
		<entry key="531" value="BOISE.MED.DNS   " />
		<entry key="537" value="CHICAGO-WEST.MED.DNS   " />
		<entry key="550" value="DANVILLE.MED.DNS   " />
		<entry key="578" value="HINES.MED.DNS   " />
		<entry key="556" value="N-CHICAGO.MED.DNS   " />
		<entry key="610" value="NORTHERN-INDIANA.MED.DNS   " />
		<entry key="583" value="INDIANAPOLIS.MED.DNS   " />
		<entry key="596" value="LEXINGTON.MED.DNS   " />
		<entry key="603" value="LOUISVILLE.MED.DNS   " />
		<entry key="502" value="ALEXANDRIA.MED.DNS   " />
		<entry key="629" value="NEW-ORLEANS.MED.DNS   " />
		<entry key="667" value="SHREVEPORT.MED.DNS   " />
		<entry key="402" value="TOGUS.MED.DNS   " />
		<entry key="512" value="BALTIMORE.MED.DNS   " />
		<entry key="518" value="BEDFORD.DNS   " />
		<entry key="523" value="BOSTON.MED.DNS   " />
		<entry key="631" value="NORTHAMPTON.MED.DNS   " />
		<entry key="506" value="ANN-ARBOR.MED.DNS   " />
		<entry key="515" value="BATTLE-CREEK.MED.DNS   " />
		<entry key="553" value="DETROIT.MED.DNS   " />
		<entry key="585" value="IRON-MTN.MED.DNS   " />
		<entry key="655" value="SAGINAW.MED.DNS   " />
		<entry key="618" value="MINNEAPOLIS.MED.DNS   " />
		<entry key="656" value="ST-CLOUD.MED.DNS   " />
		<entry key="520" value="BILOXI.MED.DNS   " />
		<entry key="586" value="JACKSON.MED.DNS   " />
		<entry key="589" value="KANSAS-CITY.MED.DNS   " />
		<entry key="657" value="ST-LOUIS.MED.DNS   " />
		<entry key="436" value="MONTANA.MED.DNS   " />
		<entry key="636" value="CENTRAL-PLAINS.MED.DNS   " />
		<entry key="593" value="LAS-VEGAS.MED.DNS   " />
		<entry key="654" value="RENO.MED.DNS   " />
		<entry key="608" value="MANCHESTER.MED.DNS   " />
		<entry key="561" value="EAST-ORANGE.MED.DNS   " />
		<entry key="501" value="ALBUQUERQUE.MED.DNS   " />
		<entry key="526" value="BRONX.MED.DNS   " />
		<entry key="620" value="MONTROSE.MED.DNS   " />
		<entry key="632" value="NORTHPORT.MED.DNS   " />
		<entry key="630" value="NY-HARBOR.MED.DNS   " />
		<entry key="528" value="V02.MED.DNS   " />
		<entry key="637" value="ASHEVILLE.MED.DNS   " />
		<entry key="558" value="DURHAM.MED.DNS   " />
		<entry key="565" value="FAYETTVL-NC.MED.DNS   " />
		<entry key="659" value="SALISBURY.MED.DNS   " />
		<entry key="437" value="FARGO.MED.DNS   " />
		<entry key="538" value="CHILLICOTHE.MED.DNS   " />
		<entry key="539" value="CINCINNATI.MED.DNS   " />
		<entry key="541" value="CLEVELAND.MED.DNS   " />
		<entry key="757" value="COLUMBUS.MED.DNS   " />
		<entry key="552" value="DAYTON.MED.DNS   " />
		<entry key="623" value="MUSKOGEE.MED.DNS   " />
		<entry key="635" value="OKLAHOMA.MED.DNS   " />
		<entry key="648" value="PORTLAND.MED.DNS   " />
		<entry key="653" value="ROSEBURG.MED.DNS   " />
		<entry key="692" value="WHITE-CITY.MED.DNS   " />
		<entry key="503" value="ALTOONA.MED.DNS   " />
		<entry key="529" value="BUTLER.MED.DNS   " />
		<entry key="542" value="COATESVILLE.MED.DNS   " />
		<entry key="562" value="ERIE.MED.DNS   " />
		<entry key="595" value="LEBANON.MED.DNS   " />
		<entry key="642" value="PHILADELPHIA.MED.DNS   " />
		<entry key="646" value="PITTSBURGH.MED.DNS   " />
		<entry key="693" value="WILKES-BARRE.MED.DNS   " />
		<entry key="650" value="PROVIDENCE.MED.DNS   " />
		<entry key="534" value="CHARLESTON.MED.DNS   " />
		<entry key="544" value="COLUMBIA-SC.MED.DNS   " />
		<entry key="568" value="BLACK-HILLS.MED.DNS   " />
		<entry key="438" value="SIOUX-FALLS.MED.DNS   " />
		<entry key="614" value="MEMPHIS.MED.DNS   " />
		<entry key="621" value="MTN-HOME.MED.DNS   " />
		<entry key="626" value="TENNESSEEVALLEY.MED.DNS   " />
		<entry key="504" value="AMARILLO.MED.DNS   " />
		<entry key="519" value="BIG-SPRING.MED.DNS   " />
		<entry key="674" value="CENTRAL-TEXAS.MED.DNS   " />
		<entry key="549" value="DALLAS.MED.DNS   " />
		<entry key="756" value="EL-PASO.MED.DNS   " />
		<entry key="580" value="HOUSTON.MED.DNS   " />
		<entry key="671" value="SAN-ANTONIO.MED.DNS   " />
		<entry key="660" value="SALT-LAKE.MED.DNS   " />
		<entry key="405" value="WHITE-RIVER.MED.DNS   " />
		<entry key="590" value="HAMPTON.MED.DNS   " />
		<entry key="652" value="RICHMOND.MED.DNS   " />
		<entry key="658" value="SALEM.MED.DNS   " />
		<entry key="663" value="PUGET-SOUND.MED.DNS   " />
		<entry key="668" value="SPOKANE.MED.DNS   " />
		<entry key="687" value="WALLA-WALLA.MED.DNS   " />
		<entry key="517" value="BECKLEY.MED.DNS   " />
		<entry key="540" value="CLARKSBURG.MED.DNS   " />
		<entry key="581" value="HUNTINGTON.MED.DNS   " />
		<entry key="613" value="MARTINSBURG.MED.DNS   " />
		<entry key="607" value="MADISON.MED.DNS   " />
		<entry key="695" value="MILWAUKEE.MED.DNS   " />
		<entry key="676" value="TOMAH.MED.DNS   " />
		<entry key="442" value="CHEYENNE.MED.DNS   " />
		<entry key="666" value="SHERIDAN.MED.DNS   " />
		<entry key="688" value="WASHINGTON.MED.DNS   " />
		<entry key="358" value="MANILA.MED.DNS   " />
		<entry key="672" value="SAN-JUAN.MED.DNS   " />
		<entry key="992" value="DNS   5.DNS        .MED.DNS   " />
		<entry key="993" value="CHYETS.DNS        .MED.DNS   " />
		<entry key="675" value="ORLANDO.MED.DNS   " />
		<entry key="200CH" value="VHACHDR.med.DNS   " />
		<entry key="0" value="DNS  VITERION.CC.MED.DNS   " />
	</util:map>
	
	<bean id="errorQCleanUp" class="gov.va.med.cds.tools.cleanup.errorq.ErrorQCleanUp">
		<property name="listenerContainer" ref="listenerContainer" />
		<property name="errorQueueCleanUpLogger" ref="errorQueueCleanUpLogger" />
		<property name="messageCounter" ref="messageCounter" />
	</bean>

</beans>
