private void triggerChangeEvent( )
throws ResourceContextException,
ResourceException
{
PropertiesResource resource =
(PropertiesResource) m_resourceContext.getResourceHome( ).find( UnitExampleHome.RESOURCE_ID );
ResourceProperty resourceProperty =
resource.getResourcePropertySet( ).get( NotificationProducerPortType.PROP_QNAME_TOPIC_EXPRESSION_DIALECTS );
TopicExpressionDialectsDocument topicExpressionDialectsDocument =
TopicExpressionDialectsDocument.Factory.newInstance( );
topicExpressionDialectsDocument.setTopicExpressionDialects( "foo-dialect" );
resourceProperty.add( topicExpressionDialectsDocument );
}