} else {
for (ManageableSecurity foundSecurity : searchResult.getSecurities()) {
List<BeanDifference<?>> differences = null;
if (foundSecurity.getClass().equals(security.getClass())) {
try {
differences = beanCompare.compare(foundSecurity, security);
} catch (Exception e) {
s_logger.error("Error comparing securities with ID bundle " + security.getExternalIdBundle(), e);
return null;
}
}