code: protected static InstallationModificationImpl.InstallationState load(final InstalledIdentity installedIdentity) throws IOException {
          final InstallationModificationImpl.InstallationState state = new InstallationModificationImpl.InstallationState();
          for (final Layer layer : installedIdentity.getLayers()) {
              state.putLayer(layer);
          }
          for (final AddOn addOn : installedIdentity.getAddOns()) {
              state.putAddOn(addOn);
          }
          return state;
      }
docs: Load the installation state based on the identity
  
  @param installedIdentity the installed identity
  @return the installation state
  @throws IOException