Topic[] topics )
{
Map topicToSubscriptionMap = getTopicToSubscriptionMap( subscription );
for ( int i = 0; i < topics.length; i++ )
{
Topic topic = topics[i];
List subscriptionIds = (List) topicToSubscriptionMap.get( topic );
if ( subscriptionIds == null )
{
subscriptionIds = new ArrayList( );
topicToSubscriptionMap.put( topic, subscriptionIds );