{
EjbModule ejbModule = (EjbModule)server.getAttribute(objectName, "EjbModule");
StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);
boolean injectionPointFound = false;
Interceptor prev = container.getInterceptor();
while (prev != null && prev.getNext() != null)
{
Interceptor next = prev.getNext();
if (next.getNext() == null)
{
log.debug("Inject service endpoint interceptor after: " + prev.getClass().getName());
ServiceEndpointInterceptor sepInterceptor = new ServiceEndpointInterceptor();
prev.setNext(sepInterceptor);
sepInterceptor.setNext(next);