ODOMElement root = (ODOMElement)
context.getDeviceRepositoryAccessorManager().
getDeviceDefinitionsDocument().getRootElement();
LocationDetails details =
new CategoryPolicyLocationDetails(context.getDeviceRepositoryAccessorManager());
registry.registerLocationDetails(element, details);
context.getErrorReporter(root).setLocationDetailsRegistry(registry);
}