restarting swi-prolog from java using jpl.jar

In one java application that uses jpl.jar to interact with swi-Prolog, I want to be able to restart the prolog engine.
An as example, in my application I use a feature such as assert(term). Now, I want to connect again swi-prolog, or restart swi-Prolog, so that my data is at first in swi-prolog. How do I use?...