7980818283848586878889
public void init(ShellSession session) { try { GroovyScript login = getLifeCycle(session, "login"); if (login != null) { login.setBinding(new Binding(session)); login.run(); } } catch (CommandException e) { e.printStackTrace(); }
93949596979899100101102103
public void destroy(ShellSession session) { try { GroovyScript logout = getLifeCycle(session, "logout"); if (logout != null) { logout.setBinding(new Binding(session)); logout.run(); } } catch (CommandException e) { e.printStackTrace(); }