Buggy code:
public class BulkImportSiteServiceImpl implements InitializingBean , BulkImportSiteService { private static Logger logger = Logger . getLogger ( BulkImportSiteServiceImpl . class ) ; SiteService siteService ; SearchService searchService ; NodeService nodeService ; BulkFilesystemImporter bulkFilesystemImporter ; StreamingNodeImporterFactory streamingNodeImporterFactory ; RetryingTransactionHelper transactionHelper ; Map < String , String > userCache = new HashMap < String , String > ( ) ; ShareConnector shareConnector ; AuthenticationUtilFacade authenticationUtil = new AuthenticationUtilFacadeImpl ( ) ; PersonService personService ; NamespaceService namespaceService ; AuthorityService authorityService ; private String importPath ; private boolean skipEmptyStrings = false ; protected boolean replaceExisting = true ; protected int batchSize = 40 ; protected int numThreads = 4 ; static int noOfFilesWritten = 0 ; @ Override public List < Site > getAllSites ( ) throws IOException , URISyntaxException , InvalidPropertiesFormatException { } protected Properties getSiteProperties ( File metadataFile ) throws IOException , InvalidPropertiesFormatException { } @ Override public Site getSite ( String placeShortName ) throws IOException , URISyntaxException , InvalidPropertiesFormatException { } @ Override public void importSite ( final Site place ) throws Exception { } protected void bulkImport ( String documentsPath , NodeRef documentLibrary ) throws IllegalStateException , SecurityException , HeuristicMixedException , HeuristicRollbackException , NotSupportedException , RollbackException , SystemException { } protected void addMembers ( Site place , SiteInfo siteInfo ) throws URISyntaxException { List < String > users = place . getSiteManagers ( ) ; addMembersWithRole ( siteInfo . getShortName ( ) , "SiteManager" , users ) ; users = place . getSiteCollaborators ( ) ; addMembersWithRole ( siteInfo . getShortName ( ) , "SiteCollaborator" , users ) ; <START_BUG> users = place . getSiteContributers ( ) ; <END_BUG> addMembersWithRole ( siteInfo . getShortName ( ) , "SiteContributor" , users ) ; users = place . getSiteConsumers ( ) ; addMembersWithRole ( siteInfo . getShortName ( ) , "SiteConsumer" , users ) ; } protected void addMembersWithRole ( String siteShortName , String role , List < String > users ) { } protected String cleanNodeName ( String str ) { } public void setImportPath ( String importPath ) { } public void setSiteService ( SiteService siteService ) { } public void setSearchService ( SearchService searchService ) { } public void setNodeService ( NodeService nodeService ) { } public void setBulkFilesystemImporter ( BulkFilesystemImporter bulkFilesystemImporter ) { } public void setTransactionHelper ( RetryingTransactionHelper transactionHelper ) { } public void setStreamingNodeImporterFactory ( StreamingNodeImporterFactory streamingNodeImporterFactory ) { } public void setShareConnector ( ShareConnector shareConnector ) { } public void setAuthenticationUtil ( AuthenticationUtilFacade authenticationUtil ) { } public void setPersonService ( PersonService personService ) { } public void setNamespaceService ( NamespaceService namespaceService ) { } public void setSkipEmptyStrings ( boolean skipEmptyStrings ) { } public void setNumThreads ( int numThreads ) { } public void setBatchSize ( int batchSize ) { } public void setReplaceExisting ( boolean replaceExisting ) { } @ Override public void afterPropertiesSet ( ) throws Exception { } }

Fix:
users = place . getSiteContributors ( ) ;