* Connection Pool/JDBC resource/Connector resource)
* Used in the case of delete asadmin command
* @param instance remove the resource from listening to resource events
*/
private void removeListenerForResource(Object instance) {
ObservableBean bean = null;
if(instance instanceof Resource){
bean = (ObservableBean) ConfigSupport.getImpl((ConfigBeanProxy)instance);
bean.removeListener(this);
} else if(instance instanceof ResourceRef) {
bean = (ObservableBean) ConfigSupport.getImpl((ConfigBeanProxy) instance);
bean.removeListener(this);
}
}