Buggy code:
private String manageGeoportalDir ( String geoportalDir ) { } @ Override public Boolean publishStyle ( String styleToPublish ) throws ResourceNotFoundFault { } @ Override public Boolean putStyle ( String styleToPublish , String styleName ) throws ResourceNotFoundFault { } @ Override public String loadStyle ( String layerDatasource , String styleName ) throws ResourceNotFoundFault { } @ Override public LayerAttributeStore describeFeatureType ( String layerName ) throws ResourceNotFoundFault { } @ Override public Boolean publish ( PublishLayerRequest publishRequest ) throws FileNotFoundException , ResourceNotFoundFault { } @ Override public Boolean publishAll ( PublishLayersRequest publishRequest ) throws FileNotFoundException , ResourceNotFoundFault { } @ Override public Boolean publishAllofPreview ( PublishRequest publishRequest ) throws FileNotFoundException , ResourceNotFoundFault { } public Boolean removeSHPFromPreview ( String workspace , String layerName ) throws ResourceNotFoundFault { } public Boolean removeTIFFromPreview ( String workspace , String layerName ) throws ResourceNotFoundFault { } private InfoPreview getTIFURLByLayerName ( String workspace , String layerName ) { } private InfoPreview getSHPURLByDataStoreName ( String workspace , String layerName ) throws IllegalArgumentException , ResourceNotFoundFault { } @ Override public InfoPreviewStore getPreviewDataStores ( String workspace ) throws ResourceNotFoundFault { } private List < GPPublisherBasicServiceImpl . LayerInfo > getInfoFromCompressedFile ( String userName , File file , String tempUserDir , String tempUserZipDir , String tempUserTifDir , String workspace ) { } private void putEntryInTheRightDir ( List < ZipEntry > entryListElement , ZipFile zipSrc , String tempUserTifDir , String tempUserDir , List < String > tifEntryNameList ) throws ResourceNotFoundFault { } private boolean isDuplicatedName ( String fileName , List < String > tifEntryNameList ) { } private List < GPPublisherBasicServiceImpl . LayerInfo > analyzeTifList ( List < String > tifEntryNameList , String userName , String tempUserTifDir , String workspace ) { } private String publishSLD ( File fileSLD , String layerName ) { } private SimpleFeatureSource getFeatureSource ( File file ) { } private Integer getEPSGCodeFromString ( String crs ) { } private Integer getEPSGCode ( SimpleFeatureSource featureSource ) { } private Integer getEPSGCode ( CoordinateReferenceSystem coordinateReferenceSystem ) { } private List < GPPublisherBasicServiceImpl . LayerInfo > analyzeShpList ( List < String > shpEntryNameList , String userName , String tempUserDir , String tempUserZipDir , String workspace ) { } private boolean removeLayer ( String layer ) { } @ Override public Boolean existsStyle ( String styleName ) { } @ Override public List < String > getWorkspaceNames ( ) { } public boolean existsLayerInWorkspace ( String workspace , String dataStoreName , String layerName ) { } public boolean existsDataStore ( String workspace , String dataStoreName ) { } public boolean existsCoverageStore ( String workspace , String csStoreName ) { } private boolean reload ( ) { } private String getWorkspace ( String userName ) { } private Integer getCRSFromGeotiff ( File file ) { } @ Override public InfoPreview analyzeTIFInPreview ( String userName , File file , Boolean overwrite , String workspace ) throws ResourceNotFoundFault { } private boolean unscheduleJob ( String completeLayerName ) { } private void addTifCleanerJob ( String userWorkspace , String layerName , String filePath ) { } private void addShpCleanerJob ( String userWorkspace , String layerName , String filePath ) { } private void scheduleTrigger ( TriggerKey triggerKey , Trigger trigger ) { } @ Override public InfoPreviewStore processEPSGResult ( ProcessEPSGResultRequest request ) throws ResourceNotFoundFault { } private void generateNewPRJ ( String userName , InfoPreview infoPreview , String tempUserDir ) { } @ Override public InfoPreviewStore analyzeZIPEPSG ( String sessionID , String userName , File file , String workspace ) throws ResourceNotFoundFault { logger . info ( "Call<seq2seq4repair_space>to<seq2seq4repair_space>analyzeZIPInPreview" ) ; reload ( ) ; String userWorkspace = workspace ; if ( GPSharedUtils . isEmpty ( userWorkspace ) ) { userWorkspace = getWorkspace ( userName ) ; } file = PublishUtility . getFileNameToLowerCase ( file ) ; String tempUserDir = PublishUtility . createDir ( ( ( this . geoportalDir ) + userName ) ) ; String tempUserZipDir = PublishUtility . createDir ( ( tempUserDir + ( PublishUtility . ZIP_DIR_NAME ) ) ) ; String tempUserTifDir = PublishUtility . createDir ( ( tempUserDir + ( PublishUtility . TIF_DIR_NAME ) ) ) ; <START_BUG> List < GPPublisherBasicServiceImpl . LayerInfo > infoShapeList = getInfoFromCompressedFile ( userName , file , tempUserDir , tempUserZipDir , tempUserTifDir , workspace ) ; <END_BUG> if ( infoShapeList . isEmpty ( ) ) { throw new ResourceNotFoundFault ( "The<seq2seq4repair_space>ZIP<seq2seq4repair_space>archive<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>shp<seq2seq4repair_space>or<seq2seq4repair_space>geotiff<seq2seq4repair_space>files" ) ; } List < InfoPreview > infoPreviewList = Lists . < InfoPreview > newArrayList ( ) ; InfoPreview infoPreview ; for ( GPPublisherBasicServiceImpl . LayerInfo info : infoShapeList ) { if ( info . isShp ) { infoPreview = new InfoPreview ( RESTURL , null , info . name , 0.0 , 0.0 , 0.0 , 0.0 , info . epsg , info . sld , Boolean . TRUE , info . alreadyExists ) ; File fileShp = new File ( tempUserZipDir , ( ( info . name ) + ".zip" ) ) ; infoPreview . setFileName ( fileShp . getAbsolutePath ( ) ) ; this . addShpCleanerJob ( userWorkspace , info . name , fileShp . getAbsolutePath ( ) ) ; } else { File fileInTifDir = new File ( tempUserTifDir , ( ( info . name ) + ".tif" ) ) ; infoPreview = new InfoPreview ( RESTURL , null , info . name , 0.0 , 0.0 , 0.0 , 0.0 , info . epsg , info . sld , Boolean . FALSE , info . alreadyExists ) ; infoPreview . setFileName ( info . fileName ) ; this . addTifCleanerJob ( userWorkspace , info . name , fileInTifDir . getAbsolutePath ( ) ) ; } infoPreview . setEpsgNotFound ( GPSharedUtils . isEmpty ( info . epsg ) ) ; infoPreviewList . add ( infoPreview ) ; } return new InfoPreviewStore ( infoPreviewList ) ; } private InfoPreview publishTifInPreview ( String userWorkspace , File fileInTifDir , String fileName , String epsg , String sld ) { } private InfoPreview publishShpInPreview ( String userWorkspace , GPPublisherBasicServiceImpl . LayerInfo info , String tempUserZipDir ) { } }

Fix:
List < GPPublisherBasicServiceImpl . LayerInfo > infoShapeList = getInfoFromCompressedFile ( userName , file , tempUserDir , tempUserZipDir , tempUserTifDir , userWorkspace ) ;