// Retrieve the policies element and manage its named policy with a
// standard handler.
DeviceODOMElement policies = (DeviceODOMElement) deviceElement.getChild(
DeviceRepositorySchemaConstants.POLICIES_ELEMENT_NAME,
deviceElement.getNamespace());
policies.submitRestorableName(policyName);
// Remove and then add the listener again (just in case it has been
// added already). This should ensure only one listener is added.
policies.removeChangeListener(policiesElementListener);
policies.addChangeListener(policiesElementListener);