}
public synchronized void stop() throws Exception {
checkProcess();
if (this.process == null) {
throw new IllegalStateException("Instance not started");
<BUG>}
this.process.destroy();
}</BUG>
public synchronized void destroy() throws Exception {
checkProcess();

}
public InstanceImpl(AdminServiceImpl service, String name, String location, boolean root) {
this.service = service;
this.name = name;
this.location = location;
this.root = root;
}
public void attach(int pid) throws IOException {
checkProcess();
