if (obj instanceof OnmsForeignSource) {
OnmsForeignSource other = (OnmsForeignSource) obj;
return new EqualsBuilder()
.append(getName(), other.getName())
.append(getScanInterval(), other.getScanInterval())
<BUG>.append(getDetectors(), other.getDetectors())
.append(getPolicies(), other.getPolicies())
.isEquals();</BUG>
}
return false;

if (obj instanceof OnmsForeignSource) {
OnmsForeignSource other = (OnmsForeignSource) obj;
return new EqualsBuilder()
.append(getName(), other.getName())
.append(getScanInterval(), other.getScanInterval())
.append(getDetectors().toArray(new PluginConfig[0]), other.getDetectors().toArray(new PluginConfig[0]))
.append(getPolicies().toArray(new PluginConfig[0]), other.getPolicies().toArray(new PluginConfig[0]))
.append(isDefault(), other.isDefault())
.isEquals();
}
return false;
