@@ -0,0 +1,1562 @@
+/*%0A * Copyright 2014 Splunk, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22): you may%0A * not use this file except in compliance with the License. You may obtain%0A * a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage com.splunk.examples.endpoint_instantiation;%0A%0Aimport com.splunk.*;%0A%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.io.OutputStreamWriter;%0Aimport java.util.Arrays;%0Aimport java.util.HashMap;%0Aimport java.util.LinkedList;%0Aimport java.util.Set;%0A%0Apublic class Program %7B%0A    public static void main(String%5B%5D args) %7B%0A    %09Command command = Command.splunk(%22info%22).parse(args);%0A        Service service = Service.connect(command.opts);%0A        %0A        String mySplunkRESTPath = %22apps/local%22;%0A        %0A        EntityCollection myCollection = new EntityCollection(service, mySplunkRESTPath);%0A        LinkedList%3CEntity%3E myEntities = (LinkedList%3CEntity%3E) myCollection.values();%0A        %0A        System.out.println(%22Found %22 + myEntities.size() + %22 Splunk apps:%22);%0A        %0A        for (int i = 0; i %3C myEntities.size(); i++) %7B%0A        %09Entity myEntity = myEntities.get(i);%0A        %09System.out.println(%22%5Ct%22 + myEntity.getName());%0A        %7D%0A    %7D%0A%7D

Add an example illustrating manual endpoint instantiation