Program: 60774
Project: 60774
Buggy source:
public SyncTaskModalPage(final ModalWindow window,final SyncTaskTO taskTO){
  super(window,taskTO);
  final IModel<List<String>> allResources=new LoadableDetachableModel<List<String>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<String> load(){
      final List<String> resourceNames=new ArrayList<String>();
      for (      ResourceTO resourceTO : resourceRestClient.getAllResources()) {
        resourceNames.add(resourceTO.getName());
      }
      return resourceNames;
    }
  }
;
  final IModel<Map<Long,String>> allRoles=new LoadableDetachableModel<Map<Long,String>>(){
    private static final long serialVersionUID=-2012833443695917883L;
    @Override protected Map<Long,String> load(){
      final Map<Long,String> allRoles=new HashMap<Long,String>();
      List<RoleTO> roles=roleRestClient.getAllRoles();
      if (roles != null) {
        for (        RoleTO role : roles) {
          allRoles.put(role.getId(),role.getName());
        }
      }
      return allRoles;
    }
  }
;
  final AjaxDropDownChoicePanel<String> resource=new AjaxDropDownChoicePanel<String>("String_Node_Str",getString("String_Node_Str"),new PropertyModel(taskTO,"String_Node_Str"),false);
  resource.setChoices(allResources.getObject());
  resource.setChoiceRenderer(new SelectChoiceRenderer());
  resource.addRequiredLabel();
  resource.setEnabled(taskTO.getId() == 0);
  resource.setStyleShet("String_Node_Str");
  profile.add(resource);
  final IModel<List<String>> classNames=new LoadableDetachableModel<List<String>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<String> load(){
      final List<String> classes=new ArrayList<String>(taskRestClient.getJobActionsClasses());
      return classes;
    }
  }
;
  final AjaxDropDownChoicePanel<String> actionsClassName=new AjaxDropDownChoicePanel<String>("String_Node_Str",getString("String_Node_Str"),new PropertyModel(taskTO,"String_Node_Str"),false);
  actionsClassName.setChoices(classNames.getObject());
  actionsClassName.setStyleShet("String_Node_Str");
  profile.add(actionsClassName);
  final AjaxCheckBoxPanel creates=new AjaxCheckBoxPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<Boolean>(taskTO,"String_Node_Str"),false);
  profile.add(creates);
  final AjaxCheckBoxPanel updates=new AjaxCheckBoxPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<Boolean>(taskTO,"String_Node_Str"),false);
  profile.add(updates);
  final AjaxCheckBoxPanel deletes=new AjaxCheckBoxPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<Boolean>(taskTO,"String_Node_Str"),false);
  profile.add(deletes);
  final AjaxPalettePanel defaultResources=new AjaxPalettePanel("String_Node_Str",new PropertyModel(taskTO,"String_Node_Str"),new ListModel<String>(allResources.getObject()));
  form.add(defaultResources);
  final AjaxPalettePanel<Long> defaultRoles=new AjaxPalettePanel<Long>("String_Node_Str",new PropertyModel(taskTO,"String_Node_Str"),new ListModel<Long>(new ArrayList<Long>(allRoles.getObject().keySet())),new ChoiceRenderer<Long>(){
    private static final long serialVersionUID=8463000788871139550L;
    @Override public String getDisplayValue(    final Long id){
      return allRoles.getObject().get(id);
    }
    @Override public String getIdValue(    final Long id,    final int index){
      return id.toString();
    }
  }
);
  form.add(defaultRoles);
}

Fixed version (ground truth):
public SyncTaskModalPage(final ModalWindow window,final SyncTaskTO taskTO,final PageReference callerPageRef){
  super(window,taskTO,callerPageRef);
  final IModel<List<String>> allResources=new LoadableDetachableModel<List<String>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<String> load(){
      final List<String> resourceNames=new ArrayList<String>();
      for (      ResourceTO resourceTO : resourceRestClient.getAllResources()) {
        resourceNames.add(resourceTO.getName());
      }
      return resourceNames;
    }
  }
;
  final AjaxDropDownChoicePanel<String> resource=new AjaxDropDownChoicePanel<String>("String_Node_Str",getString("String_Node_Str"),new PropertyModel(taskTO,"String_Node_Str"),false);
  resource.setChoices(allResources.getObject());
  resource.setChoiceRenderer(new SelectChoiceRenderer());
  resource.addRequiredLabel();
  resource.setEnabled(taskTO.getId() == 0);
  resource.setStyleShet("String_Node_Str");
  profile.add(resource);
  final IModel<List<String>> classNames=new LoadableDetachableModel<List<String>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<String> load(){
      final List<String> classes=new ArrayList<String>(taskRestClient.getJobActionsClasses());
      return classes;
    }
  }
;
  final AjaxDropDownChoicePanel<String> actionsClassName=new AjaxDropDownChoicePanel<String>("String_Node_Str",getString("String_Node_Str"),new PropertyModel(taskTO,"String_Node_Str"),false);
  actionsClassName.setChoices(classNames.getObject());
  actionsClassName.setStyleShet("String_Node_Str");
  profile.add(actionsClassName);
  final AjaxCheckBoxPanel creates=new AjaxCheckBoxPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<Boolean>(taskTO,"String_Node_Str"),false);
  profile.add(creates);
  final AjaxCheckBoxPanel updates=new AjaxCheckBoxPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<Boolean>(taskTO,"String_Node_Str"),false);
  profile.add(updates);
  final AjaxCheckBoxPanel deletes=new AjaxCheckBoxPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<Boolean>(taskTO,"String_Node_Str"),false);
  profile.add(deletes);
}