code: @Deprecated
      public CmsResource createResource(String resourcename, int type, byte[] content, List<CmsProperty> properties)
      throws CmsException, CmsIllegalArgumentException {
  
          return createResource(resourcename, getResourceType(type), content, properties);
      }
docs: Creates a new resource of the given resource type
  with the provided content and properties.<p>
  
  @param resourcename the name of the resource to create (full current site relative path)
  @param type the type of the resource to create
  @param content the contents for the new resource
  @param properties the properties for the new resource
  
  @return the created resource
  
  @throws CmsException if something goes wrong
  @throws CmsIllegalArgumentException if the <code>resourcename</code> argument is null or of length 0
  
  @deprecated
  Use {@link #createResource(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.