throws RepositoryException {
String ua, cDeviceName, rDeviceName;
boolean successful = true;
DeviceRepositoryAccessor cacheAccessor =
REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
connection1.getLocalRepository(), location1, null);
cacheAccessor.initializeDevicePatternCache(connection1);
DeviceRepositoryAccessor repositoryAccessor =
REPOSITORY_ACCESSOR_FACTORY.createDeviceRepositoryAccessor(
connection2.getLocalRepository(), location2, null);
try {
System.out.println("Summary");
System.out.println("-------");
for (int i = 0; i < userAgents.length; i++) {
ua = userAgents[i];
if ("".equals(ua.trim()) || ua.trim().startsWith("#")) {
continue;
}
cDeviceName = cacheAccessor
.retrieveMatchingDeviceName(ua);
rDeviceName = repositoryAccessor
.retrieveMatchingDeviceName(ua);
System.out.println("\n");
if (((cDeviceName != null && rDeviceName != null) &&
!cDeviceName.equals(rDeviceName)) ||