long sid = session.getId();
if(_acceptor != null && _acceptor.getManagedSessions().containsKey(sid)) return true;
if(_connector != null && _connector.getManagedSessions().containsKey(sid)) return true;
return false;
}
<BUG>@SuppressWarnings("unchecked")</BUG>
public final Map<Long, IoSession> getServerSessions()
{
<BUG>return _acceptor != null ? _acceptor.getManagedSessions() : Collections.EMPTY_MAP;
</BUG>
}

long sid = session.getId();
if(_acceptor != null && _acceptor.getManagedSessions().containsKey(sid)) return true;
if(_connector != null && _connector.getManagedSessions().containsKey(sid)) return true;
return false;
