}
private SubscriptionRequest createSubscriptionRequest( TopicDocument topic )
throws URISyntaxException
{
EndpointReferenceType consumer = EndpointReferenceType.Factory.newInstance( );
Calendar terminationTime = Calendar.getInstance( );
terminationTime.add( Calendar.HOUR, 1 ); // expire this subscription in 1 hour
SubscriptionRequest sr =
new SubscriptionRequestImpl( consumer, topic, null,
new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ), null,