title: how to find vmware/vsphere templates with java api
body: <p>In vsphere java SDK there is Browser sample class that shows how to list virtual machines</p>
  
  <pre><code>ManagedObjectReference containerView =
  vimPort.createContainerView(viewManager, folder,
  Arrays.asList("VirtualMachine"), true);
  </code></pre>
  
  <p>How can I check if such virtual machine is template ?
  Or better how to query about template virtual machines, so as to get only templates in soap response ?</p>