Buggy code:
public class DocuSignClient { private String email ; private String password ; private List < LoginAccount > loginAccounts = new ArrayList < LoginAccount > ( ) ; private String accountId ; private String integratorKey ; private String serverUrl = "https:////demo.docusign.net" ; private String baseUrl = "" ; private String lastResponse ; private String lastRequest ; private String lastError ; private String accessToken ; public DocuSignClient ( String email , String password , String integratorKey ) { } public DocuSignClient ( String email , String password , String accountId , String integratorKey ) { } public DocuSignClient ( String integratorKey ) { } public DocuSignClient ( String integratorKey , String accessToken ) { } public boolean login ( ) throws IOException , MalformedURLException { } public String requestSignatureFromTemplate ( RequestSignatureFromTemplate request ) throws IOException , MalformedURLException { } public String reqeustSignatureFromDocuments ( RequestSignatureFromDocuments request , InputStream [ ] stream ) throws IOException , MalformedURLException { if ( ( stream == null ) || ( ( stream . length ) == 0 ) ) throw new IllegalArgumentException ( "You<seq2seq4repair_space>need<seq2seq4repair_space>to<seq2seq4repair_space>pass<seq2seq4repair_space>in<seq2seq4repair_space>at<seq2seq4repair_space>least<seq2seq4repair_space>one<seq2seq4repair_space>file" ) ; if ( ( stream . length ) != ( request . getDocuments ( ) . size ( ) ) ) throw new IllegalArgumentException ( ( ( ( ( "The<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>file<seq2seq4repair_space>bytes<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>equal<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>documents<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>request.<seq2seq4repair_space>Got<seq2seq4repair_space>" + ( stream . length ) ) + "<seq2seq4repair_space>byte<seq2seq4repair_space>arrays,<seq2seq4repair_space>and<seq2seq4repair_space>" ) + ( request . getDocuments ( ) . size ( ) ) ) + "<seq2seq4repair_space>file<seq2seq4repair_space>definitions." ) ) ; HttpURLConnection conn = null ; try { conn = getRestConnection ( ( ( baseUrl ) + "//envelopes" ) ) ; ObjectMapper mapper = new ObjectMapper ( ) ; String jsonBody = mapper . writeValueAsString ( request ) ; String startRequest = ( "\r\n\r\n--BOUNDARY\r\n" + ( ( "Content-Type:<seq2seq4repair_space>application//json\r\n" + "Content-Disposition:<seq2seq4repair_space>form-data\r\n" ) + "\r\n" ) ) + jsonBody ; String endBoundary = "\r\n" + "--BOUNDARY--\r\n\r\n" ; conn . setRequestMethod ( "POST" ) ; conn . setRequestProperty ( "Content-Type" , "multipart//form-data;<seq2seq4repair_space>boundary=BOUNDARY" ) ; DataOutputStream dos = new DataOutputStream ( conn . getOutputStream ( ) ) ; dos . writeBytes ( startRequest . toString ( ) ) ; for ( int i = 0 ; i < ( stream . length ) ; ++ i ) { Document next = request . getDocuments ( ) . get ( i ) ; String contentType = next . getContentType ( ) ; if ( contentType == null ) { contentType = "application//pdf" ; } <START_BUG> String boundary = ( ( ( ( ( ( ( ( "\r\n\r\n--BOUNDARY\r\n" + "Content-Type:<seq2seq4repair_space>" ) + contentType ) + "\r\n" ) + "Content-Disposition:<seq2seq4repair_space>file;<seq2seq4repair_space>filename=\"" ) + ( next . getName ( ) ) ) + "\";<seq2seq4repair_space>documentId=" ) + ( next . getDocumentId ( ) ) ) + "\r\n" ) + "\r\n" ; <END_BUG> dos . writeBytes ( boundary ) ; byte [ ] buffer = new byte [ 1024 ] ; int len ; while ( ( len = stream [ i ] . read ( buffer ) ) != ( - 1 ) ) { dos . write ( buffer , 0 , len ) ; } } dos . writeBytes ( endBoundary ) ; dos . flush ( ) ; dos . close ( ) ; int status = conn . getResponseCode ( ) ; if ( status != 201 ) { String errorText = getErrorDetails ( conn ) ; System . err . print ( ( "Error<seq2seq4repair_space>calling<seq2seq4repair_space>webservice,<seq2seq4repair_space>status<seq2seq4repair_space>is:<seq2seq4repair_space>" + status ) ) ; System . err . print ( ( "Error<seq2seq4repair_space>calling<seq2seq4repair_space>webservice,<seq2seq4repair_space>error<seq2seq4repair_space>message<seq2seq4repair_space>is:<seq2seq4repair_space>" + errorText ) ) ; return "" ; } RequestSignatureResponse response = mapper . readValue ( conn . getInputStream ( ) , RequestSignatureResponse . class ) ; return response . getEnvelopeId ( ) ; } finally { if ( conn != null ) conn . disconnect ( ) ; } } public String reqeustSignatureFromDocuments ( RequestSignatureFromDocuments request , File [ ] files ) throws IOException , MalformedURLException { } public String requestConsoleView ( ) throws IOException { } public String requestSendingView ( String envelopeId , String returnUrl ) throws IOException , MalformedURLException { } public String requestRecipientView ( String envelopeId , String userName , String email , String clientUserId , String returnUrl , String authenticationMethod ) throws IOException , MalformedURLException { } public StatusInformation requestStatusInformation ( Date fromDate , String fromToStatus ) throws IOException , MalformedURLException { } public EnvelopeInformation requestEnvelopeInformation ( String envelopeId ) throws IOException , MalformedURLException { } public InputStream requestCombinedDocument ( String envelopeId ) throws IOException , MalformedURLException { } public RecipientInformation requestRecipientInformation ( String envelopeId ) throws IOException , MalformedURLException { } public HttpURLConnection getRestConnection ( String url ) throws IOException , MalformedURLException { } public String getLastError ( ) { } public void setLastError ( String str ) { } private String getErrorDetails ( HttpURLConnection conn ) throws IOException { } private BufferedInputStream extractAndSaveOutput ( HttpURLConnection conn ) throws IOException { } public String getAuthHeader ( ) { } public String getEmail ( ) { } public String getPassword ( ) { } public void setAccountId ( String accountId ) { } public String getAccountId ( ) { } public String getIntegratorKey ( ) { } public void setServerUrl ( String serverUrl ) { } public String getServerUrl ( ) { } public void setBaseUrl ( String baseUrl ) { } public String getBaseUrl ( ) { } public String getLastResponseText ( ) { } public String getLastRequestText ( ) { } public String getAccessToken ( ) { } public void setAccessToken ( String accessToken ) { } public List < LoginAccount > getLoginAccounts ( ) { } }

Fix:
String boundary = ( ( ( ( ( ( ( ( "\r\n--BOUNDARY\r\n" + "Content-Type:<seq2seq4repair_space>" ) + contentType ) + "\r\n" ) + "Content-Disposition:<seq2seq4repair_space>file;<seq2seq4repair_space>filename=\"" ) + ( next . getName ( ) ) ) + "\";<seq2seq4repair_space>documentId=" ) + ( next . getDocumentId ( ) ) ) + "\r\n" ) + "\r\n" ;