try {
DBGpSession session = new DBGpSession(socket);
if (session.isActive()) {
if (!DBGpSessionHandler.getInstance().fireSessionAdded(session)) {
// Session not taken, we want to create a launch
AcceptRemoteSession aSess = XDebugPreferenceMgr
.getAcceptRemoteSession();
if (aSess != AcceptRemoteSession.off) {
if (aSess == AcceptRemoteSession.localhost
&& session.getRemoteAddress()
.isLoopbackAddress() == false) {