String name )
throws InvalidResourcePropertyQNameFaultException,
Exception
{
TopicDocument doc = TopicDocument.Factory.newInstance( );
TopicExpressionType topic = doc.addNewTopic( );
XmlBeansUtils.setupTopicExpressionType( namespace, name, topic );
ResourcePropertiesManager rp_mgr = this.getPropertiesManager( );
SOAPElement[] wsntTopics =
rp_mgr.getResourceProperty( BaseNotification10Constants.RESOURCE_PROP_QNAME_TOPIC );
for ( int i = 0; i < wsntTopics.length; i++ )
{
SOAPElement topicElement = wsntTopics[i];
XmlObject obj = XmlBeansUtils.toXmlObject( topicElement );
TopicExpressionType existingTopic = ( (TopicDocument) obj.changeType( TopicDocument.type ) ).getTopic( );
if ( XmlBeansUtils.compareTopics( existingTopic, topic ) )
{
return existingTopic;
}