Buggy code:
final class GatewayProxy { private URI serviceEndpoint ; private Map < String , String > defaultHeaders ; private String masterKey ; private Map < String , String > resourceTokens ; private ConnectionPolicy connectionPolicy ; private HttpClient httpClient ; private HttpClient mediaHttpClient ; private PoolingClientConnectionManager connectionManager ; public GatewayProxy ( URI serviceEndpoint , ConnectionPolicy connectionPolicy , ConsistencyLevel consistencyLevel , String masterKey , Map < String , String > resourceTokens ) { } public DocumentServiceResponse doCreate ( DocumentServiceRequest request ) throws DocumentClientException { } public DocumentServiceResponse doRead ( DocumentServiceRequest request ) throws DocumentClientException { } public DocumentServiceResponse doReplace ( DocumentServiceRequest request ) throws DocumentClientException { } public DocumentServiceResponse doDelete ( DocumentServiceRequest request ) throws DocumentClientException { } public DocumentServiceResponse doExecute ( DocumentServiceRequest request ) throws DocumentClientException { } public DocumentServiceResponse doReadFeed ( DocumentServiceRequest request ) throws DocumentClientException { } public DocumentServiceResponse doSQLQuery ( DocumentServiceRequest request ) throws DocumentClientException { } private HttpClient getHttpClient ( boolean isForMedia ) { } private HttpClient createHttpClient ( boolean isForMedia ) { } private void putMoreContentIntoDocumentServiceRequest ( DocumentServiceRequest request , String httpMethod ) { if ( ( this . masterKey ) != null ) { final Date currentTime = new Date ( ) ; <START_BUG> final SimpleDateFormat sdf = new SimpleDateFormat ( "E,<seq2seq4repair_space>dd<seq2seq4repair_space>MMM<seq2seq4repair_space>YYY<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>z" ) ; <END_BUG> sdf . setTimeZone ( TimeZone . getTimeZone ( "GMT" ) ) ; String xDate = sdf . format ( currentTime ) ; request . getHeaders ( ) . put ( X_DATE , xDate ) ; } if ( ( ( this . masterKey ) != null ) || ( ( this . resourceTokens ) != null ) ) { String authorization = this . getAuthorizationToken ( request . getResourceId ( ) , request . getPath ( ) , request . getResourceType ( ) , httpMethod , request . getHeaders ( ) , this . masterKey , this . resourceTokens ) ; try { authorization = URLEncoder . encode ( authorization , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { throw new IllegalStateException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>encode<seq2seq4repair_space>authtoken." , e ) ; } request . getHeaders ( ) . put ( AUTHORIZATION , authorization ) ; } if ( ( ( httpMethod == ( HttpMethods . POST ) ) || ( httpMethod == ( HttpMethods . PUT ) ) ) && ( ! ( request . getHeaders ( ) . containsKey ( CONTENT_TYPE ) ) ) ) { request . getHeaders ( ) . put ( CONTENT_TYPE , JSON ) ; } if ( ! ( request . getHeaders ( ) . containsKey ( ACCEPT ) ) ) { request . getHeaders ( ) . put ( ACCEPT , JSON ) ; } } private void fillHttpRequestBaseWithHeaders ( Map < String , String > headers , HttpRequestBase httpBase ) { } private void maybeThrowException ( HttpResponse response ) throws DocumentClientException { } private DocumentServiceResponse performDeleteRequest ( DocumentServiceRequest request ) throws DocumentClientException { } private DocumentServiceResponse performGetRequest ( DocumentServiceRequest request ) throws DocumentClientException { } private DocumentServiceResponse performPostRequest ( DocumentServiceRequest request ) throws DocumentClientException { } private DocumentServiceResponse performPutRequest ( DocumentServiceRequest request ) throws DocumentClientException { } private String getAuthorizationToken ( String resourceOrOwnerId , String path , ResourceType resourceType , String requestVerb , Map < String , String > headers , String masterKey , Map < String , String > resourceTokens ) { } }

Fix:
final SimpleDateFormat sdf = new SimpleDateFormat ( "E,<seq2seq4repair_space>dd<seq2seq4repair_space>MMM<seq2seq4repair_space>yyyy<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>z" ) ;