code: public CmsResource createResource(
          String resourcename,
          I_CmsResourceType type,
          byte[] content,
          List<CmsProperty> properties)
      throws CmsException, CmsIllegalArgumentException {
  
          return type.createResource(this, m_securityManager, resourcename, 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