Program: 60771
Project: 60771
Buggy source:
public Login(final PageParameters parameters){
  super(parameters);
  form=new Form("String_Node_Str");
  userIdField=new TextField("String_Node_Str",new Model());
  userIdField.setMarkupId("String_Node_Str");
  form.add(userIdField);
  passwordField=new PasswordTextField("String_Node_Str",new Model());
  passwordField.setMarkupId("String_Node_Str");
  form.add(passwordField);
  languageSelect=new LocaleDropDown("String_Node_Str",Arrays.asList(new Locale[]{Locale.ENGLISH,Locale.ITALIAN}));
  form.add(languageSelect);
  Button submitButton=new Button("String_Node_Str",new Model(getString("String_Node_Str"))){
    private static final long serialVersionUID=429178684321093953L;
    @Override public void onSubmit(){
      String[] entitlements=authenticate(userIdField.getRawInput(),passwordField.getRawInput());
      SyncopeSession.get().setUserId(userIdField.getRawInput());
      SyncopeSession.get().setEntitlements(entitlements);
      SyncopeSession.get().setCoreVersion(getCoreVersion());
      setResponsePage(WelcomePage.class,parameters);
    }
  }
;
  submitButton.setDefaultFormProcessing(false);
  form.add(submitButton);
  add(form);
  add(new FeedbackPanel("String_Node_Str"));
  final ModalWindow editProfileModalWin=new ModalWindow("String_Node_Str");
  editProfileModalWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editProfileModalWin.setInitialHeight(SELF_REG_WIN_HEIGHT);
  editProfileModalWin.setInitialWidth(SELF_REG_WIN_WIDTH);
  editProfileModalWin.setCookieName("String_Node_Str");
  add(editProfileModalWin);
  Fragment selfRegFrag;
  if (restTemplate.getForObject(baseURL + "String_Node_Str",Boolean.class)) {
    selfRegFrag=new Fragment("String_Node_Str","String_Node_Str",this);
    AjaxLink selfRegLink=new IndicatingAjaxLink("String_Node_Str"){
      private static final long serialVersionUID=-7978723352517770644L;
      @Override public void onClick(      final AjaxRequestTarget target){
        editProfileModalWin.setPageCreator(new ModalWindow.PageCreator(){
          @Override public Page createPage(){
            return new UserModalPage(Login.this.getPageReference(),editProfileModalWin,new UserTO(),true);
          }
        }
);
        editProfileModalWin.show(target);
      }
    }
;
    selfRegLink.add(new Label("String_Node_Str",getString("String_Node_Str")));
    Panel panel=new LinkPanel("String_Node_Str",new ResourceModel("String_Node_Str"));
    panel.add(selfRegLink);
    selfRegFrag.add(panel);
  }
 else {
    selfRegFrag=new Fragment("String_Node_Str","String_Node_Str",this);
  }
  add(selfRegFrag);
}

Fixed version (ground truth):
public Login(final PageParameters parameters){
  super(parameters);
  form=new Form("String_Node_Str");
  userIdField=new TextField("String_Node_Str",new Model());
  userIdField.setMarkupId("String_Node_Str");
  form.add(userIdField);
  passwordField=new PasswordTextField("String_Node_Str",new Model());
  passwordField.setMarkupId("String_Node_Str");
  form.add(passwordField);
  languageSelect=new LocaleDropDown("String_Node_Str",Arrays.asList(new Locale[]{Locale.ENGLISH,Locale.ITALIAN}));
  form.add(languageSelect);
  Button submitButton=new Button("String_Node_Str",new Model(getString("String_Node_Str"))){
    private static final long serialVersionUID=429178684321093953L;
    @Override public void onSubmit(){
      String[] entitlements=authenticate(userIdField.getRawInput(),passwordField.getRawInput());
      SyncopeSession.get().setUserId(userIdField.getRawInput());
      SyncopeSession.get().setEntitlements(entitlements);
      SyncopeSession.get().setCoreVersion(getCoreVersion());
      setResponsePage(WelcomePage.class,parameters);
    }
  }
;
  submitButton.setDefaultFormProcessing(false);
  form.add(submitButton);
  add(form);
  add(new FeedbackPanel("String_Node_Str"));
  final ModalWindow editProfileModalWin=new ModalWindow("String_Node_Str");
  editProfileModalWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editProfileModalWin.setInitialHeight(SELF_REG_WIN_HEIGHT);
  editProfileModalWin.setInitialWidth(SELF_REG_WIN_WIDTH);
  editProfileModalWin.setCookieName("String_Node_Str");
  add(editProfileModalWin);
  Fragment selfRegFrag;
  if (restTemplate.getForObject(baseURL + "String_Node_Str",Boolean.class)) {
    selfRegFrag=new Fragment("String_Node_Str","String_Node_Str",this);
    AjaxLink selfRegLink=new IndicatingAjaxLink("String_Node_Str"){
      private static final long serialVersionUID=-7978723352517770644L;
      @Override public void onClick(      final AjaxRequestTarget target){
        editProfileModalWin.setPageCreator(new ModalWindow.PageCreator(){
          @Override public Page createPage(){
            return new UserModalPage(Login.this.getPageReference(),editProfileModalWin,new UserTO(),UserModalPage.Mode.SELF);
          }
        }
);
        editProfileModalWin.show(target);
      }
    }
;
    selfRegLink.add(new Label("String_Node_Str",getString("String_Node_Str")));
    Panel panel=new LinkPanel("String_Node_Str",new ResourceModel("String_Node_Str"));
    panel.add(selfRegLink);
    selfRegFrag.add(panel);
  }
 else {
    selfRegFrag=new Fragment("String_Node_Str","String_Node_Str",this);
  }
  add(selfRegFrag);
}