protected final AgentContext getAgentContext() { AgentContext context = m_contextRef.get(); if (context == null) { throw new IllegalStateException("Handler is not started: " + m_identifier); } return context; }