Moved functions from EPlugin.java to EPluginSession.java