code: public Metadata createMetadata(String templateName, Metadata metadata) {
          String scope = Metadata.scopeBasedOnType(templateName);
          return this.createMetadata(templateName, scope, metadata);
      }
docs: Creates metadata on this folder using a specified template.
  
  @param templateName the name of the metadata template.
  @param metadata     the new metadata values.
  @return the metadata returned from the server.