code: @Deprecated
      public void replaceResource(
          CmsObject cms,
          CmsSecurityManager securityManager,
          CmsResource resource,
          int type,
          byte[] content,
          List<CmsProperty> properties)
      throws CmsException {
  
          securityManager.replaceResource(cms.getRequestContext(), resource, type, content, properties);
          // type may have changed from non link parseable to link parseable
          createRelations(cms, securityManager, resource.getRootPath());
      }
docs: @see org.opencms.file.types.I_CmsResourceType#replaceResource(org.opencms.file.CmsObject, CmsSecurityManager, CmsResource, int, byte[], List)
  
  @deprecated
  Use {@link #replaceResource(CmsObject, CmsSecurityManager, CmsResource, I_CmsResourceType, byte[], List)} instead.
  Resource types should always be referenced either by its type class (preferred) or by type name.
  Use of int based resource type references will be discontinued in a future OpenCms release.