I'd probably create several overloaded "close" methods
That way I wouldn't have to cast and would get a compiler warning if I tried to pass a wrong object to the method
The catch block should only catch SQLException errors
Moreover, you should understand that the dbResource variable contains a copy of the reference
I have not been able to use the following:
view plaincopy to clipboardprint?
Process process = Runtime.getRuntime().exec(commandLine);