}
if (item instanceof Remoteable) {
if (item instanceof RemoteThreadsListenerTestElement){
// Used for remote notification of threads start/stop,see BUG 54152
try {
RemoteThreadsListenerWrapper wrapper = new RemoteThreadsListenerWrapper(new RemoteThreadsListenerImpl());
subTree.replaceKey(item, wrapper);
} catch (RemoteException e) {
log.error("Error replacing "+RemoteThreadsListenerTestElement.class.getName()
+" by wrapper:"+RemoteThreadsListenerWrapper.class.getName(), e);
}