/*
 * Copyright 2011 Splunk, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"): you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package com.splunk;

import java.util.Map;

public class ConfCollection 
    extends ResourceCollection<EntityCollection<Entity>> 
{
    ConfCollection(Service service) {
        super(service, "properties", EntityCollection.class);
    }

    public EntityCollection<Entity> create(String name) {
        return create(name, null);
    }

    public EntityCollection<Entity> create(String name, Map args) {
        args = Args.create(args).add("__conf", name);
        service.post(path, args);
        invalidate();
        return get(name);
    }
    
    // Search jobs use the sid value as the key.
    @Override protected String itemPath(AtomEntry entry) {
        return String.format("configs/conf-%s", entry.title);
    }
}

@@ -634,16 +634,63 @@
 l.Map;%0A%0A
+/**%0A * Representation of conf collections.%0A */%0A
 public c
@@ -769,16 +769,120 @@
 ity%3E%3E %0A%7B
+%0A%0A    /**%0A     * Class constructor.%0A     *%0A     * @param service The connected service instance.%0A     */
 %0A    Con
@@ -989,103 +989,391 @@
     
-public EntityCollection%3CEntity%3E create(String name) %7B%0A        return create(name, null);%0A    %7D%0A
+/**%0A     * Creates a config.%0A     *%0A     * @param name The new config name.%0A     *%0A     * @return The new config.%0A     */%0A    public EntityCollection%3CEntity%3E create(String name) %7B%0A        return create(name, null);%0A    %7D%0A%0A    /**%0A     * Creates a new config.%0A     *%0A     * @param name The new config name.%0A     * @param args Optional arguments.%0A     * @return the new config.%0A     */
 %0A   
@@ -1593,51 +1593,172 @@
    /
-/ Search jobs use the sid value as the key.
+**%0A     * Returns This config's endpoint path.%0A     *%0A     * @param entry The atom representation of this entry.%0A     * @return This config's endpoint path.%0A     */
 %0A   

Add java doc comments.