Buggy code:
public class BaseServiceImpl extends GwtAbstractServiceImpl implements RemoteService , ClientConstants { private static final long serialVersionUID = 7437954157376886661L ; private static final Logger logger = LoggerFactory . getLogger ( BaseServiceImpl . class ) ; private String headerApiKey = null ; private String apiKey = null ; @ Resource ( name = "restConstants" ) private Properties restConstants ; public BaseServiceImpl ( ) { } @ Override protected void onBeforeRequestDeserialized ( String serializedRequest ) { } public static Logger getLogger ( ) { } public String getProductionSwitchDate ( ) { } public String getDataApiKey ( ) { } public String getGoogleSignin ( ) { } public String getClientSideLoggersStatus ( ) { } public String getDriveGoogle ( ) { } public String getWhatsNewMosLink ( ) { } public String getWhatsNewFibLink ( ) { } public String getMosLink ( ) { } public String getRestEndPoint ( ) { } public String getSearchEndPoint ( ) { } public String getRestUsername ( ) { } public String getRestPassword ( ) { } public String getSearchUsername ( ) { } public String getSearchPassword ( ) { } public String getApiKey ( ) { } public String getHomeEndPoint ( ) { } public String getAnalyticsEndPoint ( ) { } public String getHomeEndPointForEmbed ( ) { } public String getRestEndPointForEmbed ( ) { } public String getDocViewerHome ( ) { } public String getDocViewerPoint ( ) { } public String getProfileImageUrl ( ) { } public String getFacebookAppId ( ) { } public String getFacebookFeedUrl ( ) { } public String getTaxonomyPreferences ( ) { } public String getCdnEndPoint ( ) { } public String getRedirectUrl ( ) { } public String getGoogleRestEndPoint ( ) { } public String getStoriesUrl ( ) { } public String showStoriesSection ( ) { } public String getCommunityLibaryGooruOid ( ) { } protected static Integer stringtoInteger ( JSONObject jsonObject , String key ) { } protected static Form generateFormFromParamters ( Map < String , String > params ) { } protected void setUserFilterProperties ( UserDo user ) { } protected FilterSettings getFilterProperties ( ) { } public String getDomainName ( ) { } public String getClassicEndPoint ( ) { } public String getGoogleAnalticsAdditionalAccounts ( ) { } public String getGooruReleaseVersion ( ) { } protected String getLoggedInSessionToken ( ) { } protected String getLoggedInAccessToken ( ) { } protected void setLoggedInAccessToken ( String accessToken ) { } private String getCookie ( String name ) { } protected String getGuestSessionToken ( String restEndPointFromEmbed ) { } protected void setLoggedInSessionToken ( String sessionToken ) { } protected String getPropertyByKey ( String keyName ) { } protected void setUserActiveStatus ( String userStatus ) { } protected void setUserInActiveStatus ( String userStatus ) { } protected void setLoggedInInfo ( String sessionToken , String loggedInUserUid , String loggedInEmailId , String dateOfBirth ) { } protected void deleteLoggedInInfo ( ) { } protected String getLoggedInUserUid ( ) { } protected void setLoggedInUserUid ( String loggedInUserUid ) { } protected String getLoggedInEmailId ( ) { } protected void setLoggedInEmailId ( String loggedInEmailId ) { } protected String getLoggedInDateOfBirth ( ) { } protected void setLoggedInDateOfBirth ( String dateOfBirth ) { } protected boolean isLoggedInUserAnonymous ( ) { } protected UserDo getUserInfo ( String userUid ) { } protected HttpServletRequest getHttpRequest ( ) { } protected HttpServletResponse getHttpResponse ( ) { } protected UserDo v2GuestSignIn ( ) { } protected UserDo v2GuestSignInForEmbed ( String restEndPointFromEmbed ) { } protected UserDo v2GetUserInfoByToken ( String token ) { UserDo userDo = null ; try { <START_BUG> String url = UrlGenerator . generateUrl ( getRestEndPoint ( ) , V2_GET_USER_BY_SESSIONTOKEN ) ; <END_BUG> JsonRepresentation jsonRep = null ; JsonResponseRepresentation jsonResponseRep = ServiceProcessor . get ( url , getRestUsername ( ) , getRestPassword ( ) ) ; jsonRep = jsonResponseRep . getJsonRepresentation ( ) ; String data = jsonRep . getJsonObject ( ) . toString ( ) ; userDo = JsonDeserializer . deserialize ( data , UserDo . class ) ; Date prodDate = new SimpleDateFormat ( "dd//MM//yyyy" ) . parse ( getProductionSwitchDate ( ) ) ; Date userCreatedDate = new SimpleDateFormat ( "yyyy-MM-dd<seq2seq4repair_space>hh:mm:ss.S" ) . parse ( userDo . getCreatedOn ( ) ) ; if ( ( userCreatedDate . getTime ( ) ) >= ( prodDate . getTime ( ) ) ) { userDo . setBeforeProductionSwitch ( false ) ; } else { userDo . setBeforeProductionSwitch ( true ) ; } userDo . setToken ( token ) ; setUserFilterProperties ( userDo ) ; } catch ( Exception e ) { BaseServiceImpl . getLogger ( ) . error ( ( ( USER_INFO_FAILED_ON_TOKEN ) + token ) ) ; } return userDo ; } public String getIpAddress ( ) { } }

Fix:
String url = UrlGenerator . generateUrl ( getRestEndPoint ( ) , V2_GET_USER_BY_SESSIONTOKEN , getLoggedInSessionToken ( ) ) ;