nus-yam/ex-repair huggingface dataset:
Program: 60456
Project: 60456
Buggy source:
/** 
 * Returns the line number of the next bracket after end.
 * @param document - the document being parsed
 * @param line - the line to start searching back from
 * @param end - the end position to search back from
 * @param closingBracketIncrease - the number of brackets to skip
 * @return the line number of the next matching bracket after end
 * @throws BadLocationException in case the line numbers are invalid in the document
 */
protected int findMatchingOpenBracket(final IDocument document,final int linearg,final int endarg,final int closingBracketIncrease) throws BadLocationException {
  int line=linearg;
  int end=endarg;
  int start=document.getLineOffset(line);
  int brackcount=getBracketCount(document,start,end,false) - closingBracketIncrease;
  while (brackcount < 0) {
    line--;
    if (line < 0) {
      return -1;
    }
    start=document.getLineOffset(line);
    end=start + document.getLineLength(line) - 1;
    brackcount+=getBracketCount(document,start,end,false);
  }
  return line;
}

Fixed version (ground truth):
/** 
 * Returns the line number of the next bracket after end.
 * @param document - the document being parsed
 * @param linearg - the line to start searching back from
 * @param endarg - the end position to search back from
 * @param closingBracketIncrease - the number of brackets to skip
 * @return the line number of the next matching bracket after end
 * @throws BadLocationException in case the line numbers are invalid in the document
 */
protected int findMatchingOpenBracket(final IDocument document,final int linearg,final int endarg,final int closingBracketIncrease) throws BadLocationException {
  int line=linearg;
  int end=endarg;
  int start=document.getLineOffset(line);
  int brackcount=getBracketCount(document,start,end,false) - closingBracketIncrease;
  while (brackcount < 0) {
    line--;
    if (line < 0) {
      return -1;
    }
    start=document.getLineOffset(line);
    end=start + document.getLineLength(line) - 1;
    brackcount+=getBracketCount(document,start,end,false);
  }
  return line;
}
Program: 60458
Project: 60458
Buggy source:
public <T extends AnyTO>DerAttrs(final T anyTO,final List<String> anyTypeClasses,final List<String> whichDerAttrs){
  super(anyTO,anyTypeClasses,whichDerAttrs);
  add(new ListView<AttrTO>("String_Node_Str",attrTOs){
    private static final long serialVersionUID=9101744072914090143L;
    @Override public void renderHead(    final IHeaderResponse response){
      super.renderHead(response);
      if (attrTOs.getObject().isEmpty()) {
        response.render(OnDomReadyHeaderItem.forScript(String.format("String_Node_Str",getString("String_Node_Str"))));
      }
    }
    @Override public void onComponentTagBody(    final MarkupStream markupStream,    final ComponentTag openTag){
      super.onComponentTagBody(markupStream,openTag);
      openTag.put("String_Node_Str","String_Node_Str");
    }
    @Override protected void populateItem(    final ListItem<AttrTO> item){
      AttrTO attrTO=item.getModelObject();
      IModel<String> model;
      List<String> values=attrTO.getValues();
      if (values == null || values.isEmpty()) {
        model=new ResourceModel("String_Node_Str",StringUtils.EMPTY);
      }
 else {
        model=new Model<>(values.get(0));
      }
      AjaxTextFieldPanel panel=new AjaxTextFieldPanel("String_Node_Str",attrTO.getSchema(),model,false);
      panel.setEnabled(false);
      panel.setRequired(true);
      panel.setOutputMarkupId(true);
      item.add(panel);
    }
  }
);
}

Fixed version (ground truth):
public <T extends AnyTO>DerAttrs(final T anyTO,final List<String> anyTypeClasses,final List<String> whichDerAttrs){
  super(anyTO,anyTypeClasses,whichDerAttrs);
  setTitleModel(new ResourceModel("String_Node_Str"));
  add(new ListView<AttrTO>("String_Node_Str",attrTOs){
    private static final long serialVersionUID=9101744072914090143L;
    @Override public void renderHead(    final IHeaderResponse response){
      super.renderHead(response);
      if (attrTOs.getObject().isEmpty()) {
        response.render(OnDomReadyHeaderItem.forScript(String.format("String_Node_Str",getString("String_Node_Str"))));
      }
    }
    @Override public void onComponentTagBody(    final MarkupStream markupStream,    final ComponentTag openTag){
      super.onComponentTagBody(markupStream,openTag);
      openTag.put("String_Node_Str","String_Node_Str");
    }
    @Override protected void populateItem(    final ListItem<AttrTO> item){
      AttrTO attrTO=item.getModelObject();
      IModel<String> model;
      List<String> values=attrTO.getValues();
      if (values == null || values.isEmpty()) {
        model=new ResourceModel("String_Node_Str",StringUtils.EMPTY);
      }
 else {
        model=new Model<>(values.get(0));
      }
      AjaxTextFieldPanel panel=new AjaxTextFieldPanel("String_Node_Str",attrTO.getSchema(),model,false);
      panel.setEnabled(false);
      panel.setRequired(true);
      panel.setOutputMarkupId(true);
      item.add(panel);
    }
  }
);
}
Program: 60460
Project: 60460
Buggy source:
public <T extends AnyTO>PlainAttrs(final T anyTO,final Form<?> form,final AjaxWizard.Mode mode,final List<String> anyTypeClasses,final List<String> whichPlainAttrs){
  super(anyTO,anyTypeClasses,whichPlainAttrs);
  this.mode=mode;
  add(new ListView<AttrTO>("String_Node_Str",attrTOs){
    private static final long serialVersionUID=9101744072914090143L;
    @Override public void renderHead(    final IHeaderResponse response){
      super.renderHead(response);
      if (attrTOs.getObject().isEmpty()) {
        response.render(OnDomReadyHeaderItem.forScript(String.format("String_Node_Str",getString("String_Node_Str"))));
      }
    }
    @Override @SuppressWarnings({"String_Node_Str","String_Node_Str"}) protected void populateItem(    final ListItem<AttrTO> item){
      AttrTO attrTO=item.getModelObject();
      FieldPanel panel=getFieldPanel(schemas.get(attrTO.getSchema()));
      if (mode == AjaxWizard.Mode.TEMPLATE || !schemas.get(attrTO.getSchema()).isMultivalue()) {
        item.add(panel);
        panel.setNewModel(attrTO.getValues());
      }
 else {
        item.add(new MultiFieldPanel.Builder<>(new PropertyModel<List<String>>(attrTO,"String_Node_Str")).build("String_Node_Str",attrTO.getSchema(),panel));
      }
    }
  }
);
}

Fixed version (ground truth):
public <T extends AnyTO>PlainAttrs(final T anyTO,final Form<?> form,final AjaxWizard.Mode mode,final List<String> anyTypeClasses,final List<String> whichPlainAttrs){
  super(anyTO,anyTypeClasses,whichPlainAttrs);
  this.mode=mode;
  setTitleModel(new ResourceModel("String_Node_Str"));
  add(new ListView<AttrTO>("String_Node_Str",attrTOs){
    private static final long serialVersionUID=9101744072914090143L;
    @Override public void renderHead(    final IHeaderResponse response){
      super.renderHead(response);
      if (attrTOs.getObject().isEmpty()) {
        response.render(OnDomReadyHeaderItem.forScript(String.format("String_Node_Str",getString("String_Node_Str"))));
      }
    }
    @Override @SuppressWarnings({"String_Node_Str","String_Node_Str"}) protected void populateItem(    final ListItem<AttrTO> item){
      AttrTO attrTO=item.getModelObject();
      FieldPanel panel=getFieldPanel(schemas.get(attrTO.getSchema()));
      if (mode == AjaxWizard.Mode.TEMPLATE || !schemas.get(attrTO.getSchema()).isMultivalue()) {
        item.add(panel);
        panel.setNewModel(attrTO.getValues());
      }
 else {
        item.add(new MultiFieldPanel.Builder<>(new PropertyModel<List<String>>(attrTO,"String_Node_Str")).build("String_Node_Str",attrTO.getSchema(),panel));
      }
    }
  }
);
}
Program: 60461
Project: 60461
Buggy source:
public Relationships(final AnyTO anyTO,final PageReference pageRef){
  super();
  this.anyTO=anyTO;
  this.pageRef=pageRef;
  add(getViewFragment().setRenderBodyOnly(true));
}

Fixed version (ground truth):
public Relationships(final AnyTO anyTO,final PageReference pageRef){
  super();
  setTitleModel(new ResourceModel("String_Node_Str"));
  this.anyTO=anyTO;
  this.pageRef=pageRef;
  add(getViewFragment().setRenderBodyOnly(true));
}
Program: 60462
Project: 60462
Buggy source:
public <T extends AnyTO>VirAttrs(final T anyTO,final AjaxWizard.Mode mode,final List<String> anyTypeClasses,final List<String> whichVirAttrs){
  super(anyTO,anyTypeClasses,whichVirAttrs);
  add(new ListView<AttrTO>("String_Node_Str",attrTOs){
    private static final long serialVersionUID=9101744072914090143L;
    @Override public void renderHead(    final IHeaderResponse response){
      super.renderHead(response);
      if (attrTOs.getObject().isEmpty()) {
        response.render(OnDomReadyHeaderItem.forScript(String.format("String_Node_Str",getString("String_Node_Str"))));
      }
    }
    @Override @SuppressWarnings("String_Node_Str") protected void populateItem(    final ListItem<AttrTO> item){
      AttrTO attrTO=item.getModelObject();
      attrTO.setReadonly(attrTO.isReadonly());
      final AjaxTextFieldPanel panel=new AjaxTextFieldPanel("String_Node_Str",attrTO.getSchema(),new Model<String>(),false);
      if (mode == AjaxWizard.Mode.TEMPLATE) {
        item.add(panel.enableJexlHelp().setEnabled(!attrTO.isReadonly()));
      }
 else {
        item.add(new MultiFieldPanel.Builder<>(new PropertyModel<List<String>>(attrTO,"String_Node_Str")).build("String_Node_Str",attrTO.getSchema(),panel).setEnabled(!attrTO.isReadonly()));
      }
    }
  }
);
}

Fixed version (ground truth):
public <T extends AnyTO>VirAttrs(final T anyTO,final AjaxWizard.Mode mode,final List<String> anyTypeClasses,final List<String> whichVirAttrs){
  super(anyTO,anyTypeClasses,whichVirAttrs);
  setTitleModel(new ResourceModel("String_Node_Str"));
  add(new ListView<AttrTO>("String_Node_Str",attrTOs){
    private static final long serialVersionUID=9101744072914090143L;
    @Override public void renderHead(    final IHeaderResponse response){
      super.renderHead(response);
      if (attrTOs.getObject().isEmpty()) {
        response.render(OnDomReadyHeaderItem.forScript(String.format("String_Node_Str",getString("String_Node_Str"))));
      }
    }
    @Override @SuppressWarnings("String_Node_Str") protected void populateItem(    final ListItem<AttrTO> item){
      AttrTO attrTO=item.getModelObject();
      attrTO.setReadonly(attrTO.isReadonly());
      final AjaxTextFieldPanel panel=new AjaxTextFieldPanel("String_Node_Str",attrTO.getSchema(),new Model<String>(),false);
      if (mode == AjaxWizard.Mode.TEMPLATE) {
        item.add(panel.enableJexlHelp().setEnabled(!attrTO.isReadonly()));
      }
 else {
        item.add(new MultiFieldPanel.Builder<>(new PropertyModel<List<String>>(attrTO,"String_Node_Str")).build("String_Node_Str",attrTO.getSchema(),panel).setEnabled(!attrTO.isReadonly()));
      }
    }
  }
);
}
Program: 60463
Project: 60463
Buggy source:
/** 
 * Split an attribute value recurring on provided literals/tokens.
 * @param attrValue value to be split
 * @param literals literals/tokens
 * @return split value
 */
private List<String> split(final String attrValue,final List<String> literals){
  final List<String> attrValues=new ArrayList<>();
  if (literals.isEmpty()) {
    attrValues.add(attrValue);
  }
 else {
    for (    String token : attrValue.split(Pattern.quote(literals.get(0)))) {
      attrValues.addAll(split(token,literals.subList(1,literals.size())));
    }
  }
  return attrValues;
}

Fixed version (ground truth):
/** 
 * Split an attribute value recurring on provided literals/tokens.
 * @param attrValue value to be split
 * @param literals literals/tokens
 * @return split value
 */
private List<String> split(final String attrValue,final List<String> literals){
  final List<String> attrValues=new ArrayList<>();
  if (literals.isEmpty()) {
    attrValues.add(attrValue);
  }
 else {
    for (    String token : attrValue.split(Pattern.quote(literals.get(0)))) {
      if (!token.isEmpty()) {
        attrValues.addAll(split(token,literals.subList(1,literals.size())));
      }
    }
  }
  return attrValues;
}
Program: 60464
Project: 60464
Buggy source:
/** 
 * Find any objects based on mapped uid value (or previous uid value, if updated).
 * @param uid for finding by connObjectKey
 * @param connObj for finding by attribute value
 * @param provision external resource
 * @param anyUtils any util
 * @return list of matching users / groups
 */
public List<Long> findExisting(final String uid,final ConnectorObject connObj,final Provision provision,final AnyUtils anyUtils){
  PullPolicySpec pullPolicySpec=null;
  if (provision.getResource().getPullPolicy() != null) {
    pullPolicySpec=provision.getResource().getPullPolicy().getSpecification();
  }
  PullCorrelationRule pullRule=null;
  if (pullPolicySpec != null) {
    pullRule=getCorrelationRule(provision,pullPolicySpec);
  }
  return pullRule == null ? findByConnObjectKeyItem(uid,provision,anyUtils) : findByCorrelationRule(connObj,pullRule,anyUtils.getAnyTypeKind());
}

Fixed version (ground truth):
/** 
 * Find any objects based on mapped uid value (or previous uid value, if updated).
 * @param uid for finding by connObjectKey
 * @param connObj for finding by attribute value
 * @param provision external resource
 * @param anyUtils any util
 * @return list of matching users / groups
 */
public List<Long> findExisting(final String uid,final ConnectorObject connObj,final Provision provision,final AnyUtils anyUtils){
  PullPolicySpec pullPolicySpec=null;
  if (provision.getResource().getPullPolicy() != null) {
    pullPolicySpec=provision.getResource().getPullPolicy().getSpecification();
  }
  PullCorrelationRule pullRule=null;
  if (pullPolicySpec != null) {
    pullRule=getCorrelationRule(provision,pullPolicySpec);
  }
  try {
    return pullRule == null ? findByConnObjectKeyItem(uid,provision,anyUtils) : findByCorrelationRule(connObj,pullRule,anyUtils.getAnyTypeKind());
  }
 catch (  RuntimeException e) {
    return Collections.<Long>emptyList();
  }
}
Program: 60465
Project: 60465
Buggy source:
protected AbstractSearchPanel(final String id,final AnyTypeKind kind,final String type,final Builder<?> builder){
  super(id);
  populate();
  this.model=builder.model;
  this.typeKind=kind;
  this.type=type;
  this.required=builder.required;
  this.enableSearch=builder.enableSearch;
  setOutputMarkupId(true);
  searchFormContainer=new WebMarkupContainer("String_Node_Str");
  searchFormContainer.setOutputMarkupId(true);
  add(searchFormContainer);
  final SearchClausePanel searchClausePanel=new SearchClausePanel("String_Node_Str","String_Node_Str",Model.of(new SearchClause()),required,types,anames,dnames,groupNames,resourceNames);
  if (enableSearch) {
    searchClausePanel.enableSearch();
  }
  final MultiFieldPanel.Builder<SearchClause> searchView=new MultiFieldPanel.Builder<SearchClause>(model){
    private static final long serialVersionUID=1L;
    @Override protected SearchClause newModelObject(){
      return new SearchClause();
    }
  }
;
  searchFormContainer.add(searchView.build("String_Node_Str","String_Node_Str",searchClausePanel).hideLabel());
}

Fixed version (ground truth):
protected AbstractSearchPanel(final String id,final AnyTypeKind kind,final String type,final Builder<?> builder){
  super(id);
  populate();
  this.model=builder.model;
  this.typeKind=kind;
  this.type=type;
  this.required=builder.required;
  this.enableSearch=builder.enableSearch;
  setOutputMarkupId(true);
  searchFormContainer=new WebMarkupContainer("String_Node_Str");
  searchFormContainer.setOutputMarkupId(true);
  add(searchFormContainer);
  final SearchClausePanel searchClausePanel=new SearchClausePanel("String_Node_Str","String_Node_Str",Model.of(new SearchClause()),required,types,anames,dnames,groupNames,roleNames,resourceNames);
  if (enableSearch) {
    searchClausePanel.enableSearch();
  }
  final MultiFieldPanel.Builder<SearchClause> searchView=new MultiFieldPanel.Builder<SearchClause>(model){
    private static final long serialVersionUID=1L;
    @Override protected SearchClause newModelObject(){
      return new SearchClause();
    }
  }
;
  searchFormContainer.add(searchView.build("String_Node_Str","String_Node_Str",searchClausePanel).hideLabel());
}
Program: 60466
Project: 60466
Buggy source:
@Override protected void populate(){
  super.populate();
  this.types=new LoadableDetachableModel<List<SearchClause.Type>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<SearchClause.Type> load(){
      List<SearchClause.Type> result=new ArrayList<SearchClause.Type>();
      result.add(SearchClause.Type.ATTRIBUTE);
      result.add(SearchClause.Type.MEMBERSHIP);
      result.add(SearchClause.Type.RESOURCE);
      return result;
    }
  }
;
  this.groupNames=new LoadableDetachableModel<List<Pair<Long,String>>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<Pair<Long,String>> load(){
      List<GroupTO> groupTOs=groupRestClient.list("String_Node_Str",-1,-1,new SortParam<>("String_Node_Str",true),null);
      List<Pair<Long,String>> result=new ArrayList<>(groupTOs.size());
      for (      GroupTO group : groupTOs) {
        result.add(Pair.of(group.getKey(),group.getName()));
      }
      return result;
    }
  }
;
}

Fixed version (ground truth):
@Override protected void populate(){
  super.populate();
  this.types=new LoadableDetachableModel<List<SearchClause.Type>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<SearchClause.Type> load(){
      return getAvailableTypes();
    }
  }
;
  this.groupNames=new LoadableDetachableModel<Map<Long,String>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected Map<Long,String> load(){
      List<GroupTO> groupTOs=groupRestClient.list("String_Node_Str",-1,-1,new SortParam<>("String_Node_Str",true),null);
      final Map<Long,String> result=new HashMap<>(groupTOs.size());
      for (      GroupTO group : groupTOs) {
        result.put(group.getKey(),group.getName());
      }
      return result;
    }
  }
;
}
Program: 60467
Project: 60467
Buggy source:
@Override protected List<Pair<Long,String>> load(){
  List<GroupTO> groupTOs=groupRestClient.list("String_Node_Str",-1,-1,new SortParam<>("String_Node_Str",true),null);
  List<Pair<Long,String>> result=new ArrayList<>(groupTOs.size());
  for (  GroupTO group : groupTOs) {
    result.add(Pair.of(group.getKey(),group.getName()));
  }
  return result;
}

Fixed version (ground truth):
@Override protected Map<Long,String> load(){
  List<GroupTO> groupTOs=groupRestClient.list("String_Node_Str",-1,-1,new SortParam<>("String_Node_Str",true),null);
  final Map<Long,String> result=new HashMap<>(groupTOs.size());
  for (  GroupTO group : groupTOs) {
    result.put(group.getKey(),group.getName());
  }
  return result;
}
Program: 60468
Project: 60468
Buggy source:
@Override protected void populate(){
  super.populate();
  this.types=new LoadableDetachableModel<List<SearchClause.Type>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<SearchClause.Type> load(){
      final List<SearchClause.Type> result=new ArrayList<>();
      result.add(SearchClause.Type.ATTRIBUTE);
      result.add(SearchClause.Type.RESOURCE);
      return result;
    }
  }
;
  this.groupNames=new LoadableDetachableModel<List<Pair<Long,String>>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<Pair<Long,String>> load(){
      return Collections.<Pair<Long,String>>emptyList();
    }
  }
;
}

Fixed version (ground truth):
@Override protected void populate(){
  super.populate();
  this.types=new LoadableDetachableModel<List<SearchClause.Type>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected List<SearchClause.Type> load(){
      final List<SearchClause.Type> result=new ArrayList<>();
      result.add(SearchClause.Type.ATTRIBUTE);
      result.add(SearchClause.Type.RESOURCE);
      return result;
    }
  }
;
  this.groupNames=new LoadableDetachableModel<Map<Long,String>>(){
    private static final long serialVersionUID=5275935387613157437L;
    @Override protected Map<Long,String> load(){
      return Collections.<Long,String>emptyMap();
    }
  }
;
}
Program: 60469
Project: 60469
Buggy source:
@Override protected List<Pair<Long,String>> load(){
  return Collections.<Pair<Long,String>>emptyList();
}

Fixed version (ground truth):
@Override protected Map<Long,String> load(){
  return Collections.<Long,String>emptyMap();
}
Program: 60470
Project: 60470
Buggy source:
@Override protected WizardMgtPanel<T> newInstance(final String id){
  return new ListViewPanel<T>(id,items,reference,includes,actions,check,reuseItem,model){
    private static final long serialVersionUID=1L;
    @Override protected Component getValueComponent(    final String key,    final T bean){
      return Builder.this.getValueComponent(key,bean);
    }
  }
;
}

Fixed version (ground truth):
@Override protected WizardMgtPanel<T> newInstance(final String id){
  return new ListViewPanel<T>(id,items,reference,includes,actions,check,reuseItem,model){
    private static final long serialVersionUID=1L;
    @Override protected Component getValueComponent(    final String key,    final T bean){
      return Builder.this.getValueComponent(key,bean);
    }
    @Override protected T getActualItem(    final T item,    final List<T> list){
      return Builder.this.getActualItem(item,list);
    }
  }
;
}
Program: 60471
Project: 60471
Buggy source:
@Override @SuppressWarnings("String_Node_Str") public void onEvent(final IEvent<?> event){
  if (event.getPayload() instanceof AjaxWizard.NewItemEvent) {
    final T item=((AjaxWizard.NewItemEvent<T>)event.getPayload()).getItem();
    final AjaxRequestTarget target=((AjaxWizard.NewItemEvent<T>)event.getPayload()).getTarget();
    if (event.getPayload() instanceof AjaxWizard.NewItemFinishEvent) {
      if (item != null && !this.listOfItems.contains(item)) {
        this.listOfItems.add(item);
      }
    }
    target.add(ListViewPanel.this);
    super.onEvent(event);
  }
 else   if (event.getPayload() instanceof ListViewReload) {
    ((ListViewReload)event.getPayload()).getTarget().add(ListViewPanel.this);
  }
 else {
    super.onEvent(event);
  }
}

Fixed version (ground truth):
@Override @SuppressWarnings("String_Node_Str") public void onEvent(final IEvent<?> event){
  if (event.getPayload() instanceof AjaxWizard.NewItemEvent) {
    final T item=((AjaxWizard.NewItemEvent<T>)event.getPayload()).getItem();
    final AjaxRequestTarget target=((AjaxWizard.NewItemEvent<T>)event.getPayload()).getTarget();
    if (event.getPayload() instanceof AjaxWizard.NewItemFinishEvent) {
      final T old=getActualItem(item,ListViewPanel.this.listOfItems);
      int indexOf=ListViewPanel.this.listOfItems.size();
      if (old != null) {
        indexOf=ListViewPanel.this.listOfItems.indexOf(old);
        ListViewPanel.this.listOfItems.remove(old);
      }
      ListViewPanel.this.listOfItems.add(indexOf,item);
    }
    target.add(ListViewPanel.this);
    super.onEvent(event);
  }
 else   if (event.getPayload() instanceof ListViewReload) {
    ((ListViewReload)event.getPayload()).getTarget().add(ListViewPanel.this);
  }
 else {
    super.onEvent(event);
  }
}
Program: 60473
Project: 60473
Buggy source:
public boolean authenticate(final String username,final String password){
  boolean authenticated=false;
  try {
    client=SyncopeEnduserApplication.get().getClientFactory().setDomain(SyncopeConstants.MASTER_DOMAIN).create(username,password);
    Pair<Map<String,Set<String>>,UserTO> self=client.self();
    selfTO=self.getValue();
    this.username=username;
    this.password=password;
    this.bind();
    authenticated=true;
  }
 catch (  Exception e) {
    LOG.error("String_Node_Str",e);
  }
  return authenticated;
}

Fixed version (ground truth):
public boolean authenticate(final String username,final String password){
  boolean authenticated=false;
  try {
    client=SyncopeEnduserApplication.get().getClientFactory().setDomain(SyncopeConstants.MASTER_DOMAIN).create(username,password);
    Pair<Map<String,Set<String>>,UserTO> self=client.self();
    selfTO=self.getValue();
    this.username=username;
    this.password=password;
    this.bind();
    authenticated=true;
    services.clear();
  }
 catch (  Exception e) {
    LOG.error("String_Node_Str",e);
  }
  return authenticated;
}
Program: 60474
Project: 60474
Buggy source:
@Override protected ResourceResponse newResourceResponse(final IResource.Attributes attributes){
  ResourceResponse response=new ResourceResponse();
  try {
    final CookieUtils sessionCookieUtils=SyncopeEnduserSession.get().getCookieUtils();
    if (sessionCookieUtils.getCookie(SyncopeEnduserConstants.XSRF_COOKIE) == null || StringUtils.isBlank(sessionCookieUtils.getCookie(SyncopeEnduserConstants.XSRF_COOKIE).getValue())) {
      LOG.info("String_Node_Str");
      sessionCookieUtils.save(SyncopeEnduserConstants.XSRF_COOKIE,SaltGenerator.generate(SyncopeEnduserSession.get().getId()));
    }
    response.setWriteCallback(new WriteCallback(){
      @Override public void writeData(      final IResource.Attributes attributes) throws IOException {
        attributes.getResponse().write(POJOHelper.serialize(syncopeTOAdapter.toSyncopeTORequest(SyncopeEnduserSession.get().getSyncopeTO())));
      }
    }
);
    response.setStatusCode(Response.Status.OK.getStatusCode());
  }
 catch (  Exception e) {
    LOG.error("String_Node_Str",e);
    response.setError(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(),new StringBuilder().append("String_Node_Str").append(e.getMessage()).append("String_Node_Str").toString());
  }
  return response;
}

Fixed version (ground truth):
@Override protected ResourceResponse newResourceResponse(final IResource.Attributes attributes){
  ResourceResponse response=new ResourceResponse();
  try {
    final CookieUtils sessionCookieUtils=SyncopeEnduserSession.get().getCookieUtils();
    if (!SyncopeEnduserSession.get().isXsrfTokenGenerated() && (sessionCookieUtils.getCookie(SyncopeEnduserConstants.XSRF_COOKIE) == null || StringUtils.isBlank(sessionCookieUtils.getCookie(SyncopeEnduserConstants.XSRF_COOKIE).getValue()))) {
      LOG.info("String_Node_Str");
      SyncopeEnduserSession.get().setXsrfTokenGenerated(true);
      sessionCookieUtils.save(SyncopeEnduserConstants.XSRF_COOKIE,SaltGenerator.generate(SyncopeEnduserSession.get().getId()));
    }
    response.setWriteCallback(new WriteCallback(){
      @Override public void writeData(      final IResource.Attributes attributes) throws IOException {
        attributes.getResponse().write(POJOHelper.serialize(syncopeTOAdapter.toSyncopeTORequest(SyncopeEnduserSession.get().getSyncopeTO())));
      }
    }
);
    response.setStatusCode(Response.Status.OK.getStatusCode());
  }
 catch (  Exception e) {
    LOG.error("String_Node_Str",e);
    response.setError(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(),new StringBuilder().append("String_Node_Str").append(e.getMessage()).append("String_Node_Str").toString());
  }
  return response;
}
Program: 60476
Project: 60476
Buggy source:
@Override protected void onClickInternal(final AjaxRequestTarget target){
  securityQuestionModal.header(new ResourceModel("String_Node_Str"));
  target.add(securityQuestionModal.setContent(buildModalPanel()));
  securityQuestionModal.addSumbitButton();
  securityQuestionModal.show(true);
}

Fixed version (ground truth):
@Override protected void onClickInternal(final AjaxRequestTarget target){
  securityQuestionModal.header(new ResourceModel("String_Node_Str"));
  securityQuestionModal.setFormModel(new SecurityQuestionTO());
  securityQuestionModal.size(Modal.Size.Large);
  target.add(securityQuestionModal.setContent(new SecurityQuestionModalPanel(securityQuestionModal,getPageReference(),true)));
  securityQuestionModal.addSumbitButton();
  securityQuestionModal.show(true);
}
Program: 60477
Project: 60477
Buggy source:
public SecurityQuestions(final PageParameters parameters){
  super(parameters);
  final WebMarkupContainer content=new WebMarkupContainer("String_Node_Str");
  content.add(new Label("String_Node_Str",getString("String_Node_Str")));
  content.setOutputMarkupId(true);
  add(content);
  securityQuestionModal=new BaseModal<>("String_Node_Str");
  addWindowWindowClosedCallback(securityQuestionModal);
  add(securityQuestionModal);
  final AjaxLink<Void> createLink=new ClearIndicatingAjaxLink<Void>("String_Node_Str",getPageReference()){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override protected void onClickInternal(    final AjaxRequestTarget target){
      securityQuestionModal.header(new ResourceModel("String_Node_Str"));
      target.add(securityQuestionModal.setContent(buildModalPanel()));
      securityQuestionModal.addSumbitButton();
      securityQuestionModal.show(true);
    }
  }
;
  content.add(createLink);
  if (SyncopeConsoleSession.get().owns(StandardEntitlement.SECURITY_QUESTION_CREATE)) {
    MetaDataRoleAuthorizationStrategy.authorize(createLink,ENABLE,StandardEntitlement.SECURITY_QUESTION_CREATE);
  }
  securityQuestionsPanel=new SecurityQuestionsPanel("String_Node_Str",getPageReference(),securityQuestionModal);
  securityQuestionsPanel.setOutputMarkupId(true);
  content.add(securityQuestionsPanel);
}

Fixed version (ground truth):
public SecurityQuestions(final PageParameters parameters){
  super(parameters);
  final WebMarkupContainer content=new WebMarkupContainer("String_Node_Str");
  content.add(new Label("String_Node_Str",getString("String_Node_Str")));
  content.setOutputMarkupId(true);
  add(content);
  securityQuestionModal=new BaseModal<>("String_Node_Str");
  addWindowWindowClosedCallback(securityQuestionModal);
  add(securityQuestionModal);
  final AjaxLink<Void> createLink=new ClearIndicatingAjaxLink<Void>("String_Node_Str",getPageReference()){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override protected void onClickInternal(    final AjaxRequestTarget target){
      securityQuestionModal.header(new ResourceModel("String_Node_Str"));
      securityQuestionModal.setFormModel(new SecurityQuestionTO());
      securityQuestionModal.size(Modal.Size.Large);
      target.add(securityQuestionModal.setContent(new SecurityQuestionModalPanel(securityQuestionModal,getPageReference(),true)));
      securityQuestionModal.addSumbitButton();
      securityQuestionModal.show(true);
    }
  }
;
  content.add(createLink);
  if (SyncopeConsoleSession.get().owns(StandardEntitlement.SECURITY_QUESTION_CREATE)) {
    MetaDataRoleAuthorizationStrategy.authorize(createLink,ENABLE,StandardEntitlement.SECURITY_QUESTION_CREATE);
  }
  securityQuestionsPanel=new SecurityQuestionsPanel("String_Node_Str",getPageReference(),securityQuestionModal);
  securityQuestionsPanel.setOutputMarkupId(true);
  content.add(securityQuestionsPanel);
}
Program: 60479
Project: 60479
Buggy source:
@Override protected void onClickInternal(final AjaxRequestTarget target){
  securityQuestionModal.header(new ResourceModel("String_Node_Str"));
  target.add(securityQuestionModal.setContent(new SecurityQuestionModalPanel(securityQuestionModal,getPageReference(),true)));
  securityQuestionModal.addSumbitButton();
  securityQuestionModal.show(true);
}

Fixed version (ground truth):
@Override protected void onClickInternal(final AjaxRequestTarget target){
  securityQuestionModal.header(new ResourceModel("String_Node_Str"));
  target.add(securityQuestionModal.setContent(buildModalPanel()));
  securityQuestionModal.addSumbitButton();
  securityQuestionModal.show(true);
}
Program: 60480
Project: 60480
Buggy source:
public SecurityQuestions(final PageParameters parameters){
  super(parameters);
  final WebMarkupContainer content=new WebMarkupContainer("String_Node_Str");
  content.add(new Label("String_Node_Str",getString("String_Node_Str")));
  content.setOutputMarkupId(true);
  add(content);
  final BaseModal<SecurityQuestionTO> securityQuestionModal=new BaseModal<>("String_Node_Str");
  securityQuestionModal.setFormModel(new SecurityQuestionTO());
  securityQuestionModal.size(Modal.Size.Large);
  addWindowWindowClosedCallback(securityQuestionModal);
  add(securityQuestionModal);
  final AjaxLink<Void> createLink=new ClearIndicatingAjaxLink<Void>("String_Node_Str",getPageReference()){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override protected void onClickInternal(    final AjaxRequestTarget target){
      securityQuestionModal.header(new ResourceModel("String_Node_Str"));
      target.add(securityQuestionModal.setContent(new SecurityQuestionModalPanel(securityQuestionModal,getPageReference(),true)));
      securityQuestionModal.addSumbitButton();
      securityQuestionModal.show(true);
    }
  }
;
  content.add(createLink);
  if (SyncopeConsoleSession.get().owns(StandardEntitlement.SECURITY_QUESTION_CREATE)) {
    MetaDataRoleAuthorizationStrategy.authorize(createLink,ENABLE,StandardEntitlement.SECURITY_QUESTION_CREATE);
  }
  securityQuestionsPanel=new SecurityQuestionsPanel("String_Node_Str",getPageReference(),securityQuestionModal);
  securityQuestionsPanel.setOutputMarkupId(true);
  content.add(securityQuestionsPanel);
}

Fixed version (ground truth):
public SecurityQuestions(final PageParameters parameters){
  super(parameters);
  final WebMarkupContainer content=new WebMarkupContainer("String_Node_Str");
  content.add(new Label("String_Node_Str",getString("String_Node_Str")));
  content.setOutputMarkupId(true);
  add(content);
  securityQuestionModal=new BaseModal<>("String_Node_Str");
  addWindowWindowClosedCallback(securityQuestionModal);
  add(securityQuestionModal);
  final AjaxLink<Void> createLink=new ClearIndicatingAjaxLink<Void>("String_Node_Str",getPageReference()){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override protected void onClickInternal(    final AjaxRequestTarget target){
      securityQuestionModal.header(new ResourceModel("String_Node_Str"));
      target.add(securityQuestionModal.setContent(buildModalPanel()));
      securityQuestionModal.addSumbitButton();
      securityQuestionModal.show(true);
    }
  }
;
  content.add(createLink);
  if (SyncopeConsoleSession.get().owns(StandardEntitlement.SECURITY_QUESTION_CREATE)) {
    MetaDataRoleAuthorizationStrategy.authorize(createLink,ENABLE,StandardEntitlement.SECURITY_QUESTION_CREATE);
  }
  securityQuestionsPanel=new SecurityQuestionsPanel("String_Node_Str",getPageReference(),securityQuestionModal);
  securityQuestionsPanel.setOutputMarkupId(true);
  content.add(securityQuestionsPanel);
}
Program: 60481
Project: 60481
Buggy source:
public SecurityQuestionDetailsPanel(final String id,final BaseModal<SecurityQuestionTO> modal){
  super(id);
  final WebMarkupContainer container=new WebMarkupContainer("String_Node_Str");
  container.setOutputMarkupId(true);
  add(container);
  final Form<SecurityQuestionTO> form=new Form<>("String_Node_Str");
  final SecurityQuestionTO securityQuestionTO=modal.getFormModel();
  form.setModel(new CompoundPropertyModel<>(securityQuestionTO));
  container.add(form);
  final AjaxTextFieldPanel key=new AjaxTextFieldPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<String>(securityQuestionTO,"String_Node_Str"));
  key.addRequiredLabel();
  final String keyModelObject=String.valueOf(key.getModelObject());
  key.setEnabled(keyModelObject == null || keyModelObject.isEmpty());
  form.add(key);
  final AjaxTextFieldPanel content=new AjaxTextFieldPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<String>(securityQuestionTO,"String_Node_Str"));
  content.addRequiredLabel();
  content.setEnabled(true);
  content.setVisible(true);
  form.add(content);
}

Fixed version (ground truth):
public SecurityQuestionDetailsPanel(final String id,final BaseModal<SecurityQuestionTO> modal){
  super(id);
  final WebMarkupContainer container=new WebMarkupContainer("String_Node_Str");
  container.setOutputMarkupId(true);
  add(container);
  final Form<SecurityQuestionTO> form=new Form<>("String_Node_Str");
  final SecurityQuestionTO securityQuestionTO=modal.getFormModel();
  form.setModel(new CompoundPropertyModel<>(securityQuestionTO));
  container.add(form);
  final AjaxTextFieldPanel key=new AjaxTextFieldPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<String>(securityQuestionTO,"String_Node_Str"));
  key.addRequiredLabel();
  final String keyModelObject=String.valueOf(key.getModelObject());
  key.setEnabled(keyModelObject == null || keyModelObject.isEmpty());
  form.add(key);
  final AjaxTextFieldPanel content=new AjaxTextFieldPanel("String_Node_Str",getString("String_Node_Str"),new PropertyModel<String>(securityQuestionTO,"String_Node_Str"));
  content.addRequiredLabel();
  form.add(content);
}
Program: 60482
Project: 60482
Buggy source:
@Override public Group save(final Group group){
  if (group.getUDynMembership() != null) {
    List<User> matching=searchDAO.search(buildDynMembershipCond(group.getUDynMembership().getFIQLCond(),group.getRealm()),AnyTypeKind.USER);
    group.getUDynMembership().getMembers().clear();
    for (    User user : matching) {
      group.getUDynMembership().add(user);
    }
  }
  for (  ADynGroupMembership memb : group.getADynMemberships()) {
    List<AnyObject> matching=searchDAO.search(buildDynMembershipCond(memb.getFIQLCond(),group.getRealm()),AnyTypeKind.ANY_OBJECT);
    memb.getMembers().clear();
    for (    AnyObject anyObject : matching) {
      memb.add(anyObject);
    }
  }
  return super.save(group);
}

Fixed version (ground truth):
@Override public Group save(final Group group){
  Group merged=super.save(group);
  if (merged.getUDynMembership() != null) {
    List<User> matching=searchDAO.search(buildDynMembershipCond(merged.getUDynMembership().getFIQLCond(),merged.getRealm()),AnyTypeKind.USER);
    merged.getUDynMembership().getMembers().clear();
    for (    User user : matching) {
      merged.getUDynMembership().add(user);
    }
  }
  for (  ADynGroupMembership memb : merged.getADynMemberships()) {
    List<AnyObject> matching=searchDAO.search(buildDynMembershipCond(memb.getFIQLCond(),merged.getRealm()),AnyTypeKind.ANY_OBJECT);
    memb.getMembers().clear();
    for (    AnyObject anyObject : matching) {
      memb.add(anyObject);
    }
  }
  return merged;
}
Program: 60484
Project: 60484
Buggy source:
private Properties archetypeProperties(final String archetypeVersion,final String groupId,final String artifactId,final String secretKey,final String anonymousKey){
  final Properties properties=new Properties();
  properties.setProperty("String_Node_Str","String_Node_Str");
  properties.setProperty("String_Node_Str","String_Node_Str");
  if (archetypeVersion.contains("String_Node_Str")) {
    properties.setProperty("String_Node_Str","String_Node_Str");
  }
 else {
    properties.setProperty("String_Node_Str","String_Node_Str");
  }
  properties.setProperty("String_Node_Str",archetypeVersion);
  properties.setProperty("String_Node_Str",groupId);
  properties.setProperty("String_Node_Str",artifactId);
  properties.setProperty("String_Node_Str",secretKey);
  properties.setProperty("String_Node_Str",anonymousKey);
  return properties;
}

Fixed version (ground truth):
private Properties archetypeProperties(final String archetypeVersion,final String groupId,final String artifactId,final String secretKey,final String anonymousKey){
  final Properties properties=new Properties();
  properties.setProperty("String_Node_Str","String_Node_Str");
  properties.setProperty("String_Node_Str","String_Node_Str");
  if (archetypeVersion.contains("String_Node_Str")) {
    properties.setProperty("String_Node_Str","String_Node_Str");
  }
 else {
    properties.setProperty("String_Node_Str","String_Node_Str");
  }
  properties.setProperty("String_Node_Str",archetypeVersion);
  properties.setProperty("String_Node_Str",groupId);
  properties.setProperty("String_Node_Str",artifactId);
  properties.setProperty("String_Node_Str",secretKey);
  properties.setProperty("String_Node_Str",anonymousKey);
  properties.setProperty("String_Node_Str","String_Node_Str");
  return properties;
}
Program: 60485
Project: 60485
Buggy source:
@Override public long size(){
  long result;
  if (filtered) {
    result=fiql == null ? 0 : restClient.searchCount(realm,fiql,type);
  }
 else {
    result=restClient.count(type,realm);
  }
  return result;
}

Fixed version (ground truth):
@Override public long size(){
  long result;
  if (filtered) {
    result=fiql == null ? 0 : restClient.searchCount(realm,fiql,type);
  }
 else {
    result=restClient.count(realm,type);
  }
  return result;
}
Program: 60486
Project: 60486
Buggy source:
@Override public int count(final String type,final String realm){
  return getService(AnyObjectService.class).list(type,new AnyListQuery.Builder().realm(realm).page(1).size(1).build()).getTotalCount();
}

Fixed version (ground truth):
@Override public int count(final String realm,final String type){
  return getService(AnyObjectService.class).list(type,new AnyListQuery.Builder().realm(realm).page(1).size(1).build()).getTotalCount();
}
Program: 60487
Project: 60487
Buggy source:
@Override public void execute(final Input input){
  if (StringUtils.isBlank(input.getOption())) {
    input.setOption(Options.HELP.getOptionName());
  }
switch (Options.fromName(input.getOption())) {
case DETAILS:
    new TaskDetails(input).details();
  break;
case LIST:
new TaskList(input).list();
break;
case LIST_RUNNING_JOBS:
new TaskListRunningJobs(input).list();
break;
case LIST_SCHEDULED_JOBS:
new TaskListScheduledJobs(input).list();
break;
case READ:
new TaskRead(input).read();
break;
case READ_EXECUTION:
new TaskExecutionRead(input).read();
break;
case DELETE:
new TaskDelete(input).delete();
break;
case DELETE_EXECUTION:
new TaskExecutionDelete(input).delete();
break;
case EXECUTE:
new TaskExecute(input).execute();
break;
case HELP:
System.out.println(getHelpMessage());
break;
default :
taskResultManager.defaultOptionMessage(input.getOption(),getHelpMessage());
}
}

Fixed version (ground truth):
@Override public void execute(final Input input){
  if (StringUtils.isBlank(input.getOption())) {
    input.setOption(Options.HELP.getOptionName());
  }
switch (Options.fromName(input.getOption())) {
case DETAILS:
    new TaskDetails(input).details();
  break;
case LIST:
new TaskList(input).list();
break;
case LIST_RUNNING_JOBS:
new TaskListRunningJobs(input).list();
break;
case LIST_SCHEDULED_JOBS:
new TaskListScheduledJobs(input).list();
break;
case READ:
new TaskRead(input).read();
break;
case READ_EXECUTION:
new TaskExecutionRead(input).read();
break;
case DELETE:
new TaskDelete(input).delete();
break;
case DELETE_PROP_TASK:
new TaskDeleteAllProp(input).delete();
break;
case DELETE_EXECUTION:
new TaskExecutionDelete(input).delete();
break;
case EXECUTE:
new TaskExecute(input).execute();
break;
case HELP:
System.out.println(getHelpMessage());
break;
default :
taskResultManager.defaultOptionMessage(input.getOption(),getHelpMessage());
}
}
Program: 60488
Project: 60488
Buggy source:
public void delete(final String taskId){
  taskService.read(Long.valueOf(taskId));
}

Fixed version (ground truth):
public void delete(final String taskId){
  taskService.delete(Long.valueOf(taskId));
}
Program: 60489
Project: 60489
Buggy source:
public String printCommandFields(){
  final StringBuilder commandBuilder=new StringBuilder();
  for (  String commandField : commandFields) {
    commandBuilder.append(commandField).append("String_Node_Str");
  }
  return commandBuilder.toString();
}

Fixed version (ground truth):
public String printCommandFields(){
  final StringBuilder commandBuilder=new StringBuilder();
  for (  final String commandField : commandFields) {
    commandBuilder.append(commandField).append("String_Node_Str");
  }
  return commandBuilder.toString();
}
Program: 60490
Project: 60490
Buggy source:
public Input(final String[] args) throws InstantiationException, IllegalAccessException, IllegalArgumentException {
  command=CommandUtils.fromArgs(args[0]);
  commandFields.add(args[0]);
  if (args.length > 1) {
    option=args[1];
    commandFields.add(args[1]);
  }
  if (args.length > 2) {
    parameters=new String[args.length - 2];
    for (int i=0; i < parameters.length; i++) {
      parameters[i]=args[i + 2];
      commandFields.add(args[i + 2]);
    }
  }
 else {
    parameters=new String[0];
  }
}

Fixed version (ground truth):
public Input(final String[] args) throws InstantiationException, IllegalAccessException, IllegalArgumentException {
  command=CommandUtils.fromArgs(args[0]);
  commandFields.add(args[0]);
  if (args.length > 1) {
    option=args[1];
    commandFields.add(args[1]);
  }
  if (args.length > 2) {
    parameters=new String[args.length - 2];
    for (int i=0; i < parameters.length; i++) {
      parameters[i]=args[i + 2].replaceAll("String_Node_Str","String_Node_Str");
      commandFields.add(parameters[i]);
    }
  }
 else {
    parameters=new String[0];
  }
}
Program: 60491
Project: 60491
Buggy source:
public static void main(final String[] args){
  LOG.debug("String_Node_Str");
  try {
    ArgsManager.validator(args);
    final Input input=new Input(args);
    final AbstractCommand command=input.getCommand();
    LOG.debug("String_Node_Str",command.getClass().getAnnotation(Command.class).name());
    LOG.debug("String_Node_Str",input.getOption());
    LOG.debug("String_Node_Str");
    for (    final String parameter : input.getParameters()) {
      LOG.debug("String_Node_Str" + parameter);
    }
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str" + input.printCommandFields());
    command.execute(input);
  }
 catch (  final IllegalAccessException|InstantiationException e) {
    System.out.println(helpMessage());
  }
catch (  final IllegalArgumentException ex) {
    LOG.error("String_Node_Str",ex);
    RESULT_MANAGER.genericError(ex.getMessage());
    if (!ex.getMessage().startsWith("String_Node_Str")) {
      System.out.println(helpMessage());
    }
  }
catch (  final ProcessingException e) {
    LOG.error("String_Node_Str",e);
    RESULT_MANAGER.genericError("String_Node_Str");
    RESULT_MANAGER.genericError(e.getCause().getMessage());
  }
}

Fixed version (ground truth):
public static void main(final String[] args){
  LOG.debug("String_Node_Str");
  try {
    ArgsManager.validator(args);
    final Input input=new Input(args);
    final AbstractCommand command=input.getCommand();
    LOG.debug("String_Node_Str",command.getClass().getAnnotation(Command.class).name());
    LOG.debug("String_Node_Str",input.getOption());
    LOG.debug("String_Node_Str");
    for (    final String parameter : input.getParameters()) {
      LOG.debug("String_Node_Str" + parameter);
    }
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str" + input.printCommandFields());
    command.execute(input);
  }
 catch (  final IllegalAccessException|InstantiationException e) {
    System.out.println(helpMessage());
  }
catch (  final IllegalArgumentException ex) {
    LOG.error("String_Node_Str",ex);
    if (!ex.getMessage().startsWith("String_Node_Str")) {
      System.out.println("String_Node_Str");
      System.out.println(helpMessage());
    }
 else {
      RESULT_MANAGER.genericError(ex.getMessage());
    }
  }
catch (  final ProcessingException e) {
    LOG.error("String_Node_Str",e);
    RESULT_MANAGER.genericError("String_Node_Str");
    RESULT_MANAGER.genericError(e.getCause().getMessage());
  }
}