code: @Deprecated
      public void replaceResource(String resourcename, int type, byte[] content, List<CmsProperty> properties)
      throws CmsException {
  
          replaceResource(resourcename, getResourceType(type), content, properties);
      }
docs: Replaces the content, type and properties of a resource.<p>
  
  @param resourcename the name of the resource to replace (full current site relative path)
  @param type the new type of the resource
  @param content the new content of the resource
  @param properties the new properties of the resource
  
  @throws CmsException if something goes wrong
  
  @deprecated
  Use {@link #replaceResource(String, 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.