code: public static RegistryEntry getValue(String branch, String entry, short type) throws RegistryException, IOException, InterruptedException {
  	String[] cmd = new String[] { "reg", "query", cleanBrunch(branch), "/v", entry };
  	RegistryEntry[] rst = filter(executeQuery(cmd), branch, type);
  	if (rst.length == 1) {
  	    return rst[0];
  	    // if(type==RegistryEntry.TYPE_ANY || type==r.getType()) return r;
  	}
  	return null;
      }
docs: gets a single value form the registry
  
  @param branch brach to get value from
  @param entry entry to get
  @param type type of the registry entry to get
  @return registry entry or null of not exist
  @throws RegistryException
  @throws IOException
  @throws InterruptedException