Buggy code:
public class StatelessAndStatefulWebSessionManager extends DefaultWebSessionManager { private static final Logger log = LoggerFactory . getLogger ( StatelessAndStatefulWebSessionManager . class ) ; public static final String NO_SESSION_HEADER = "X-Nexus-Session" ; public static final String DO_NOT_STORE_SESSION_KEY = "NO_SESSION" ; private SessionIdGenerator fakeSessionIdGenerator = new JavaUuidSessionIdGenerator ( ) ; protected Session doCreateSession ( SessionContext context ) { Session session ; if ( WebUtils . isHttp ( context ) ) { session = newSessionInstance ( context ) ; if ( StatelessAndStatefulWebSessionManager . log . isTraceEnabled ( ) ) { StatelessAndStatefulWebSessionManager . log . trace ( "Creating<seq2seq4repair_space>session<seq2seq4repair_space>for<seq2seq4repair_space>host<seq2seq4repair_space>{}" , session . getHost ( ) ) ; } HttpServletRequest request = WebUtils . getHttpRequest ( context ) ; if ( isStatelessClient ( request ) ) { ( ( SimpleSession ) ( session ) ) . setId ( fakeSessionIdGenerator . generateId ( session ) ) ; StatelessAndStatefulWebSessionManager . log . debug ( "Stateless<seq2seq4repair_space>client<seq2seq4repair_space>session<seq2seq4repair_space>{}<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>persisted." , session . getId ( ) ) ; session . setAttribute ( StatelessAndStatefulWebSessionManager . DO_NOT_STORE_SESSION_KEY , Boolean . TRUE ) ; } else { create ( session ) ; } if ( StatelessAndStatefulWebSessionManager . log . isTraceEnabled ( ) ) { StatelessAndStatefulWebSessionManager . log . trace ( "Session<seq2seq4repair_space>{}<seq2seq4repair_space>was<seq2seq4repair_space>created<seq2seq4repair_space>for<seq2seq4repair_space>User-Agent<seq2seq4repair_space>{}" , session . getId ( ) , getUserAgent ( request ) ) ; } } else { <START_BUG> StatelessAndStatefulWebSessionManager . log . trace ( "Non<seq2seq4repair_space>http<seq2seq4repair_space>request,<seq2seq4repair_space>falling<seq2seq4repair_space>back<seq2seq4repair_space>to<seq2seq4repair_space>default<seq2seq4repair_space>implemenation." ) ; <END_BUG> session = super . doCreateSession ( context ) ; } return session ; } @ Override protected void onChange ( Session session ) { } @ Override protected Session createExposedSession ( Session session , SessionContext context ) { } @ Override protected void onStart ( Session session , SessionContext context ) { } public boolean isSessionIdCookieEnabled ( ServletRequest request , ServletResponse response ) { } protected Serializable getSessionId ( ServletRequest request , ServletResponse response ) { } private String getSessionIdCookieValue ( ServletRequest request , ServletResponse response ) { } private Serializable getReferencedSessionId ( ServletRequest request , ServletResponse response ) { } private void storeSessionId ( Serializable currentId , HttpServletRequest request , HttpServletResponse response ) { } protected boolean isStatelessClient ( final ServletRequest request ) { } private boolean hasNoSessionHeader ( final ServletRequest request ) { } private String getUserAgent ( final ServletRequest request ) { } private String getHeaderValue ( String headerName , final ServletRequest request ) { } }

Fix:
StatelessAndStatefulWebSessionManager . log . trace ( "Non<seq2seq4repair_space>http<seq2seq4repair_space>request,<seq2seq4repair_space>falling<seq2seq4repair_space>back<seq2seq4repair_space>to<seq2seq4repair_space>default<seq2seq4repair_space>implementation." ) ;