Improve Java-config example to use destroyMethod (fixes #6)