protected void detachSource() {
   sourceListener.attach(sourceSession);
   sourceExceptionHandler.detach(sourceSession);
   sourceSession = null;
 }