Buggy code:
public class CaseDocumentDatastore extends CommonDatastore < CaseDocumentItem , Document > implements DatastoreHasAdd < CaseDocumentItem > , DatastoreHasDelete , DatastoreHasGet < CaseDocumentItem > , DatastoreHasUpdate < CaseDocumentItem > { protected final WebBonitaConstantsUtils constants ; protected final ProcessAPI processAPI ; final long maxSizeForTenant ; final FileTypeMap mimetypesFileTypeMap ; final BonitaHomeFolderAccessor tenantFolder ; protected SearchOptionsCreator searchOptionsCreator ; public CaseDocumentDatastore ( final APISession engineSession , final WebBonitaConstantsUtils constantsValue , final ProcessAPI processAPI , final BonitaHomeFolderAccessor tenantFolder ) { } @ Override public CaseDocumentItem get ( final APIID id ) { } @ Override public CaseDocumentItem add ( final CaseDocumentItem item ) { } @ Override public CaseDocumentItem update ( final APIID id , final Map < String , String > attributes ) { } protected DocumentValue buildDocumentValueFromUploadPath ( final String uploadPath , final int index , String fileName ) throws IOException , DocumentException { String mimeType = null ; byte [ ] fileContent = null ; final File theSourceFile = tenantFolder . getTempFile ( uploadPath , getEngineSession ( ) . getTenantId ( ) ) ; if ( theSourceFile . exists ( ) ) { if ( ( theSourceFile . length ( ) ) > ( ( maxSizeForTenant ) * 1048576 ) ) { final String errorMessage = ( "This<seq2seq4repair_space>document<seq2seq4repair_space>is<seq2seq4repair_space>exceeded<seq2seq4repair_space>" + ( maxSizeForTenant ) ) + "Mb" ; throw new DocumentException ( errorMessage ) ; } fileContent = DocumentUtil . getArrayByteFromFile ( theSourceFile ) ; if ( theSourceFile . isFile ( ) ) { if ( StringUtil . isBlank ( fileName ) ) { fileName = theSourceFile . getName ( ) ; } mimeType = mimetypesFileTypeMap . getContentType ( theSourceFile ) ; } } else { <START_BUG> throw new FileNotFoundException ( ( ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>" + fileName ) + "<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>tenant<seq2seq4repair_space>temp<seq2seq4repair_space>directory." ) ) ; <END_BUG> } final DocumentValue documentValue = new DocumentValue ( fileContent , mimeType , fileName ) ; if ( index != ( - 1 ) ) { documentValue . setIndex ( index ) ; } return documentValue ; } protected DocumentValue buildDocumentValueFromUrl ( final String urlPath , final int index ) { } public ItemSearchResult < CaseDocumentItem > search ( final int page , final int resultsByPage , final String search , final Map < String , String > filters , final String orders ) { } protected ItemSearchResult < CaseDocumentItem > searchDocument ( final int page , final int resultsByPage , final String search , final Map < String , String > filters , final String orders ) { } protected SearchOptionsCreator buildSearchOptionCreator ( final int page , final int resultsByPage , final String search , final Map < String , String > filters , final String orders ) { } private CaseDocumentSearchAttributeConverter getDocumentSearchAttributeConverter ( ) { } @ Override public void delete ( final List < APIID > ids ) { } @ Override protected CaseDocumentItem convertEngineToConsoleItem ( final Document item ) { } private List < CaseDocumentItem > convertEngineToConsoleItem ( final List < Document > result ) { } No newline ; at end ; of file ; }

Fix:
throw new FileNotFoundException ( ( ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>" + uploadPath ) + "<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>tenant<seq2seq4repair_space>temp<seq2seq4repair_space>directory." ) ) ;