Is is possible to do a msearch/template call using the java rest client?(not using curl )

Thanks but I wanted something with the java rest client. That is for java api.