code: protected boolean checkImmutable(String translatedName, List<String> immutableResources) {
  
          boolean resourceNotImmutable = true;
          if (immutableResources.contains(translatedName)) {
              if (LOG.isDebugEnabled()) {
                  LOG.debug(
                      Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_RESOURCENAME_IMMUTABLE_1, translatedName));
              }
              // this resource must not be modified by an import if it already exists
              String storedSiteRoot = m_cms.getRequestContext().getSiteRoot();
              try {
                  m_cms.getRequestContext().setSiteRoot("/");
                  m_cms.readResource(translatedName);
                  resourceNotImmutable = false;
                  if (LOG.isDebugEnabled()) {
                      LOG.debug(
                          Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_IMMUTABLE_FLAG_SET_1, translatedName));
                  }
              } catch (CmsException e) {
                  // resourceNotImmutable will be true
                  if (LOG.isDebugEnabled()) {
                      LOG.debug(
                          Messages.get().getBundle().key(
                              Messages.LOG_IMPORTEXPORT_ERROR_ON_TEST_IMMUTABLE_1,
                              translatedName),
                          e);
                  }
              } finally {
                  m_cms.getRequestContext().setSiteRoot(storedSiteRoot);
              }
          }
          return resourceNotImmutable;
      }
docs: Checks if the resources is in the list of immutalbe resources. <p>
  
  @param translatedName the name of the resource
  @param immutableResources the list of the immutable resources
  @return true or false