Topic topic = (Topic) getHermes().getSession().createTopic(dConfig.getName());
int fin =0;
String[] ids = topic.getSubscriberIds();
for(int i=0;i< ids.length && fin == 0 ;i++){
if(dConfig.getShortName() !=null && (dConfig.getShortName()).equals(ids[i])){
User u = new User("user"+i,ids[i]);
final Subscription[] subs = u.getSubscriptions() ;
for (int j = 0 ; j < subs.length && fin == 0 ; j++) {
if( (subs[j].getName()).equals(dConfig.getClientID()) ){
for (Iterator iter = messageIds.iterator(); iter.hasNext();) {
u.deleteMessage(dConfig.getClientID(),(String)iter.next());
}
fin=1;
}
}
}else{