InternalJDBCRepository repository = (InternalJDBCRepository)
factory.createJDBCRepository(repositoryConfiguration);
// Create the JDBC accessor.
DeviceRepositoryAccessor accessor =
new JDBCDeviceRepositoryAccessor(repository, location);
configureCache(accessor, configuration);
// Initialise the device pattern cache.
initialiseDevicePatternCache(repository, accessor);