public boolean isMergeableWith(Model model) { if (!(model instanceof SecuredModel)) { return false; } SecuredModel secured = (SecuredModel) model; return ObjectUtils.nullSafeEquals(getAttributes(), secured.getAttributes()); }