XMLRepositoryFactory factory =
XMLRepositoryFactory.getDefaultInstance();
LocalRepository repository = factory.createXMLRepository(null);
DeviceRepositoryLocation location =
new DeviceRepositoryLocationImpl(repositoryUrl.getFile());
// Create the XML accessor.
DeviceRepositoryAccessor accessor =
REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
repository, location, null);