String key = (String)idKeyMap.get(registrationID);
if(key != null)
{
RegistrationListener listener = (RegistrationListener)this.keyListenerMap.get(key);
RegistrationContext rc = this.getRegistrationContext(registrationID);
this.keyProviderMap.remove(key);
//Notify the listener of the change
if(listener != null)
listener.notify(rc.getMessageLayer(),rc.getAppContext());
return true;
}
return false;
}