public void destroyJavaObject(java.lang.Object o) {
public void destroyJavaObject(java.lang.Object o) throws Exception {
    public void destroyJavaObject(java.lang.Object o) {        java.net.Socket s = (java.net.Socket) o;        if (s != null) {            try {                s.close();                            } catch (Exception e) {                                java.lang.System.out.println("ERROR: Could not destroy java socket. An exception occured during socket closing.");            }        } else {            throw new Exception("Could not destroy java socket. The java socket is null.");        }    }