code: public boolean equalLayouts(Layout layout) throws FetchException {
          if (this == layout) {
              return true;
          }
          return getStorableTypeName().equals(layout.getStorableTypeName())
              && getAllProperties().equals(layout.getAllProperties())
              && Arrays.equals(mStoredLayout.getExtraData(), layout.mStoredLayout.getExtraData());
      }
docs: Returns true if the given layout matches this one. Layout ID,
  generation, and creation info is not considered in the comparison.