Buggy code:
@ Service public class EligoServiceClient { @ Autowired private EligoTestConfigDetailsService eligoTestConfigDetailsService ; @ Autowired private RegistrationEligoTestDetailsService testDetailsService ; private EligoTestConfigDetails eligoTestConfigDetails ; @ Autowired private AssessmentCentreTestDetailsService assessmentCentreTestDetailsService ; private static final Logger LOG = LoggerFactory . getLogger ( EligoServiceClient . class ) ; public void registerWithEligo ( final List < String > selectedUserIds ) { } public void registerWithEligo ( final List < String > selectedUserIds , final Model model ) { this . eligoTestConfigDetails = eligoTestConfigDetailsService . getLatestEntry ( ) ; int errorUserCount = 0 ; <START_BUG> StringBuilder errorUsersMessage = new StringBuilder ( "Error<seq2seq4repair_space>found:<seq2seq4repair_space>User<seq2seq4repair_space>ID's" ) ; <END_BUG> if ( CollectionUtils . isNotEmpty ( selectedUserIds ) ) { EligoServiceRequestDetailDto eligoServiceRequestDetailDto ; Set < String > selectedUserIdSet = new HashSet < String > ( selectedUserIds ) ; for ( String selectedId : selectedUserIdSet ) { Long userId = Long . parseLong ( selectedId ) ; eligoServiceRequestDetailDto = new EligoServiceRequestDetailDto ( ) ; eligoServiceRequestDetailDto . setRequestType ( CREATE_TESTER ) ; eligoServiceRequestDetailDto . setEligoEmailText ( GDEStringUtils . concat ( eligoTestConfigDetails . getEligoMailPrefix ( ) , selectedId ) ) ; EligoServiceResponseDetail responseDetail = getResponseFormEligo ( eligoServiceRequestDetailDto ) ; RegistrationEligoTestDetails testDetails = testDetailsService . fetchByUserId ( userId ) ; if ( testDetails == null ) { testDetails = new RegistrationEligoTestDetails ( ) ; testDetails . setUser ( new GdeUser ( userId ) ) ; testDetails . setUserEligoiUID ( responseDetail . getEligoUserId ( ) ) ; testDetails . setUserEligoName ( eligoServiceRequestDetailDto . getEligoEmailText ( ) ) ; testDetails . setEligoTestConfigDetails ( eligoTestConfigDetails ) ; } else if ( ( responseDetail . getEligoUserId ( ) ) != null ) { testDetails . setUserEligoiUID ( responseDetail . getEligoUserId ( ) ) ; } testDetails . setEligoResponseStatus ( responseDetail . getResponseStatusText ( ) ) ; if ( responseDetail . getResponseCode ( ) . equalsIgnoreCase ( "0" ) ) { testDetails . setEligoTestCreationStatus ( "0" ) ; testDetails . setRegistrationStatus ( REGISTERED ) ; } else { testDetails . setEligoTestCreationStatus ( "1" ) ; testDetails . setRegistrationStatus ( NOT_REGIISTERED ) ; errorUsersMessage . append ( ( ( "<seq2seq4repair_space>" + selectedId ) + "," ) ) ; errorUserCount ++ ; } testDetailsService . saveOrrMerge ( testDetails ) ; } if ( model != null ) { if ( errorUserCount == 0 ) { model . addAttribute ( "registrationMessage" , "Success:All<seq2seq4repair_space>selected<seq2seq4repair_space>users<seq2seq4repair_space>are<seq2seq4repair_space>registered<seq2seq4repair_space>on<seq2seq4repair_space>Eligo." ) ; } else { errorUsersMessage = new StringBuilder ( errorUsersMessage . substring ( 0 , errorUsersMessage . lastIndexOf ( "," ) ) ) ; errorUsersMessage . append ( "<seq2seq4repair_space>are<seq2seq4repair_space>not<seq2seq4repair_space>registered<seq2seq4repair_space>on<seq2seq4repair_space>Eligo." ) ; model . addAttribute ( "registrationErrorMessage" , errorUsersMessage . toString ( ) ) ; } } } } public void refreshTestData ( final List < String > selectedUserIds ) { } public void refreshTestData ( final List < String > selectedUserIds , final Model model ) { } public EligoServiceResponseDetail getResponseFormEligo ( final EligoServiceRequestDetailDto eligoServiceRequestDetailsDto ) { } private void creareResponeObject ( final EligoServiceRequestDetailDto eligoServiceRequestDetailsDto , final EligoServiceResponseDetail eligoResponse , final EligoServiceRequestTypeEnum requestType , final InputStream in ) { } private String createRequestString ( final EligoServiceRequestDetailDto eligoServiceRequestDetailsDto , final EligoServiceRequestTypeEnum requestType ) { } No newline ; at end ; of file ; }

Fix:
StringBuilder errorUsersMessage = new StringBuilder ( "Error<seq2seq4repair_space>found:<seq2seq4repair_space>User<seq2seq4repair_space>Id's" ) ;