nus-yam/ex-repair huggingface dataset:
Program: 60843
Project: 60843
Buggy source:
private void setWindowClosedReloadCallback(final ModalWindow window,final ResultSetPanel[] panels){
  window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      for (      ResultSetPanel panel : panels) {
        target.add(panel);
      }
      target.add(feedbackPanel);
    }
  }
);
}

Fixed version (ground truth):
private void setWindowClosedReloadCallback(final ModalWindow window,final ResultSetPanel[] panels){
  window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      final EventDataWrapper data=new EventDataWrapper();
      data.setTarget(target);
      data.setCreate(true);
      send(getPage(),Broadcast.BREADTH,data);
      if (isModalResult()) {
        setModalResult(false);
        getSession().info(getString("String_Node_Str"));
        target.add(feedbackPanel);
      }
    }
  }
);
}
Program: 60844
Project: 60844
Buggy source:
@Override public void onClose(final AjaxRequestTarget target){
  for (  ResultSetPanel panel : panels) {
    target.add(panel);
  }
  target.add(feedbackPanel);
}

Fixed version (ground truth):
@Override public void onClose(final AjaxRequestTarget target){
  final EventDataWrapper data=new EventDataWrapper();
  data.setTarget(target);
  data.setCreate(true);
  send(getPage(),Broadcast.BREADTH,data);
  if (isModalResult()) {
    setModalResult(false);
    getSession().info(getString("String_Node_Str"));
    target.add(feedbackPanel);
  }
}
Program: 60845
Project: 60845
Buggy source:
private void doSearch(final AjaxRequestTarget target,final List<SearchConditionWrapper> searchConditionList,final ResultSetPanel resultsetPanel){
  NodeCond searchCond=buildSearchCond(searchConditionList);
  LOG.debug("String_Node_Str" + searchCond);
  if (searchCond == null || !searchCond.checkValidity()) {
    error(getString("String_Node_Str"));
    return;
  }
  resultsetPanel.updateTableContent(searchCond,target);
}

Fixed version (ground truth):
private void doSearch(final AjaxRequestTarget target,final List<SearchConditionWrapper> searchConditionList,final ResultSetPanel resultsetPanel){
  NodeCond searchCond=buildSearchCond(searchConditionList);
  LOG.debug("String_Node_Str" + searchCond);
  if (searchCond == null || !searchCond.checkValidity()) {
    error(getString("String_Node_Str"));
    return;
  }
  resultsetPanel.search(searchCond,target);
}
Program: 60846
Project: 60846
Buggy source:
@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;
}

Fixed version (ground truth):
@Override protected List<String> load(){
  final List<String> classes=new ArrayList<String>(taskRestClient.getJobActionsClasses());
  return classes;
}
Program: 60848
Project: 60848
Buggy source:
@Override public Object getDisplayValue(Boolean object){
  return object ? ConnParameterType.OVERRIDABLE.toString() : ConnParameterType.NOT_OVERRIDABLE.toString();
}

Fixed version (ground truth):
@Override public Object getDisplayValue(final Boolean object){
  return object ? getString(ConnParameterType.OVERRIDABLE.name()) : getString(ConnParameterType.NOT_OVERRIDABLE.name());
}
Program: 60849
Project: 60849
Buggy source:
@Override public String getIdValue(Boolean object,int index){
  return String.valueOf(object);
}

Fixed version (ground truth):
@Override public String getIdValue(final Boolean object,final int index){
  return String.valueOf(object);
}
Program: 60851
Project: 60851
Buggy source:
@Override public void onClose(AjaxRequestTarget target){
  target.add(container);
}

Fixed version (ground truth):
@Override public void onClose(final AjaxRequestTarget target){
  target.add(container);
}
Program: 60852
Project: 60852
Buggy source:
/** 
 * Set a WindowClosedCallback for a ModalWindow instance.
 * @param window
 * @param container
 */
private void setWindowClosedCallback(final ModalWindow window,final WebMarkupContainer container){
  window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    AjaxRequestTarget target){
      target.add(container);
    }
  }
);
}

Fixed version (ground truth):
private void setWindowClosedCallback(final ModalWindow window,final WebMarkupContainer container){
  window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      target.add(container);
    }
  }
);
}
Program: 60855
Project: 60855
Buggy source:
@Override protected void onSubmit(AjaxRequestTarget target,Form form){
  if (createFlag) {
    restClient.createDerivedSchema(kind,(DerivedSchemaTO)form.getDefaultModelObject());
  }
 else {
    restClient.updateDerivedSchema(kind,(DerivedSchemaTO)form.getDefaultModelObject());
  }
  Schema callerPage=(Schema)callerPageRef.getPage();
  callerPage.setModalResult(true);
  window.close(target);
}

Fixed version (ground truth):
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  DerivedSchemaTO schemaTO=(DerivedSchemaTO)form.getDefaultModelObject();
  try {
    if (createFlag) {
      restClient.createDerivedSchema(kind,schemaTO);
    }
 else {
      restClient.updateDerivedSchema(kind,schemaTO);
    }
    if (callerPageRef.getPage() instanceof BasePage) {
      ((BasePage)callerPageRef.getPage()).setModalResult(true);
    }
    window.close(target);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    error(getString("String_Node_Str") + "String_Node_Str" + e.getMessage());
    target.add(feedbackPanel);
  }
}
Program: 60857
Project: 60857
Buggy source:
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  SchemaTO schemaTO=(SchemaTO)form.getDefaultModelObject();
  if (schemaTO.isMultivalue() && schemaTO.isUniqueConstraint()) {
    error(getString("String_Node_Str"));
    return;
  }
  if (createFlag) {
    restClient.createSchema(kind,schemaTO);
  }
 else {
    restClient.updateSchema(kind,schemaTO);
  }
  Schema callerPage=(Schema)callerPageRef.getPage();
  callerPage.setModalResult(true);
  window.close(target);
}

Fixed version (ground truth):
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  SchemaTO schemaTO=(SchemaTO)form.getDefaultModelObject();
  if (schemaTO.isMultivalue() && schemaTO.isUniqueConstraint()) {
    error(getString("String_Node_Str"));
    return;
  }
  try {
    if (createFlag) {
      restClient.createSchema(kind,schemaTO);
    }
 else {
      restClient.updateSchema(kind,schemaTO);
    }
    if (callerPageRef.getPage() instanceof BasePage) {
      ((BasePage)callerPageRef.getPage()).setModalResult(true);
    }
    window.close(target);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    error(getString("String_Node_Str") + "String_Node_Str" + e.getMessage());
    target.add(feedbackPanel);
  }
}
Program: 60859
Project: 60859
Buggy source:
@Override protected void onSubmit(AjaxRequestTarget target,Form form){
  if (createFlag) {
    restClient.createVirtualSchema(kind,(VirtualSchemaTO)form.getDefaultModelObject());
  }
 else {
    restClient.updateVirtualSchema(kind,(VirtualSchemaTO)form.getDefaultModelObject());
  }
  Schema callerPage=(Schema)callerPageRef.getPage();
  callerPage.setModalResult(true);
  window.close(target);
}

Fixed version (ground truth):
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  VirtualSchemaTO schemaTO=(VirtualSchemaTO)form.getDefaultModelObject();
  try {
    if (createFlag) {
      restClient.createVirtualSchema(kind,schemaTO);
    }
 else {
      restClient.updateVirtualSchema(kind,schemaTO);
    }
    if (callerPageRef.getPage() instanceof BasePage) {
      ((BasePage)callerPageRef.getPage()).setModalResult(true);
    }
    window.close(target);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    error(getString("String_Node_Str") + "String_Node_Str" + e.getMessage());
    target.add(feedbackPanel);
  }
}
Program: 60861
Project: 60861
Buggy source:
/** 
 * Get virtual schema names.
 * @return List of virtual schema names.
 */
public List<String> getVirtualSchemaNames(String kind){
  final List<String> userVirtualSchemasNames=new ArrayList<String>();
  try {
    final List<VirtualSchemaTO> userVirtualSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",VirtualSchemaTO[].class));
    for (    VirtualSchemaTO schemaTO : userVirtualSchemas) {
      userVirtualSchemasNames.add(schemaTO.getName());
    }
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userVirtualSchemasNames;
}

Fixed version (ground truth):
/** 
 * Get virtual schema names.
 * @return List of virtual schema names.
 */
public List<String> getVirtualSchemaNames(final String kind){
  final List<String> userVirtualSchemasNames=new ArrayList<String>();
  try {
    final List<VirtualSchemaTO> userVirtualSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",VirtualSchemaTO[].class));
    for (    VirtualSchemaTO schemaTO : userVirtualSchemas) {
      userVirtualSchemasNames.add(schemaTO.getName());
    }
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userVirtualSchemasNames;
}
Program: 60862
Project: 60862
Buggy source:
/** 
 * Create new derived user schema.
 * @param schemaTO
 */
public void createDerivedSchema(String kind,DerivedSchemaTO schemaTO){
  try {
    restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,DerivedSchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Create new derived user schema.
 * @param schemaTO
 */
public void createDerivedSchema(final String kind,final DerivedSchemaTO schemaTO){
  restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,DerivedSchemaTO.class);
}
Program: 60863
Project: 60863
Buggy source:
/** 
 * Create new derived user schema.
 * @param schemaTO
 */
public void createVirtualSchema(String kind,VirtualSchemaTO schemaTO){
  try {
    restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,VirtualSchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Create new derived user schema.
 * @param schemaTO
 */
public void createVirtualSchema(final String kind,final VirtualSchemaTO schemaTO){
  restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,VirtualSchemaTO.class);
}
Program: 60864
Project: 60864
Buggy source:
/** 
 * Load an already existent user derived schema by its name.
 * @param name (e.g.:surname)
 * @return DerivedSchemaTO
 */
public DerivedSchemaTO readDerivedSchema(String kind,String name){
  DerivedSchemaTO derivedSchemaTO=null;
  try {
    derivedSchemaTO=restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str",DerivedSchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return derivedSchemaTO;
}

Fixed version (ground truth):
/** 
 * Load an already existent user derived schema by its name.
 * @param name (e.g.:surname)
 * @return DerivedSchemaTO
 */
public DerivedSchemaTO readDerivedSchema(final String kind,final String name){
  DerivedSchemaTO derivedSchemaTO=null;
  try {
    derivedSchemaTO=restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str",DerivedSchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return derivedSchemaTO;
}
Program: 60865
Project: 60865
Buggy source:
/** 
 * Delete an already existent user derived schema by its name.
 * @param name (e.g.:surname)
 * @return schemaTO
 */
public void deleteDerivedSchema(String kind,String name){
  try {
    restTemplate.delete(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str");
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Delete an already existent user derived schema by its name.
 * @param name (e.g.:surname)
 */
public void deleteDerivedSchema(String kind,String name){
  try {
    restTemplate.delete(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str");
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}
Program: 60866
Project: 60866
Buggy source:
/** 
 * Update an already existent user derived schema.
 * @param schemaTO updated
 */
public void updateDerivedSchema(String kind,DerivedSchemaTO schemaTO){
  try {
    restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,DerivedSchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Update an already existent user derived schema.
 * @param schemaTO updated
 */
public void updateDerivedSchema(final String kind,final DerivedSchemaTO schemaTO){
  restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,DerivedSchemaTO.class);
}
Program: 60867
Project: 60867
Buggy source:
/** 
 * Get derived schemas.
 * @return List of derived schemas.
 */
public List<DerivedSchemaTO> getDerivedSchemas(String kind){
  List<DerivedSchemaTO> userDerivedSchemas=null;
  try {
    userDerivedSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",DerivedSchemaTO[].class));
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userDerivedSchemas;
}

Fixed version (ground truth):
/** 
 * Get derived schemas.
 * @return List of derived schemas.
 */
public List<DerivedSchemaTO> getDerivedSchemas(final String kind){
  List<DerivedSchemaTO> userDerivedSchemas=null;
  try {
    userDerivedSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",DerivedSchemaTO[].class));
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userDerivedSchemas;
}
Program: 60868
Project: 60868
Buggy source:
/** 
 * Update an already existent user schema.
 * @param schemaTO updated
 */
public void updateSchema(String kind,SchemaTO schemaTO){
  try {
    restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,SchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Update an already existent user schema.
 * @param schemaTO updated
 */
public void updateSchema(String kind,SchemaTO schemaTO){
  restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,SchemaTO.class);
}
Program: 60869
Project: 60869
Buggy source:
/** 
 * Create new user schema.
 * @param schemaTO
 */
public void createSchema(String kind,SchemaTO schemaTO){
  try {
    restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,SchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Create new user schema.
 * @param schemaTO
 */
public void createSchema(final String kind,final SchemaTO schemaTO){
  restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,SchemaTO.class);
}
Program: 60870
Project: 60870
Buggy source:
/** 
 * Load an already existent user schema by its name.
 * @param name (e.g.:surname)
 * @return schemaTO
 */
public SchemaTO readSchema(String kind,String name){
  SchemaTO schema=null;
  try {
    schema=restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str",SchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return schema;
}

Fixed version (ground truth):
/** 
 * Load an already existent user schema by its name.
 * @param name (e.g.:surname)
 * @return schemaTO
 */
public SchemaTO readSchema(final String kind,final String name){
  SchemaTO schema=null;
  try {
    schema=restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str",SchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return schema;
}
Program: 60871
Project: 60871
Buggy source:
/** 
 * Get schemas.
 * @return List of schamas.
 */
public List<SchemaTO> getSchemas(String kind){
  List<SchemaTO> userSchemas=null;
  try {
    userSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",SchemaTO[].class));
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userSchemas;
}

Fixed version (ground truth):
/** 
 * Get schemas.
 * @return List of schemas.
 */
public List<SchemaTO> getSchemas(final String kind){
  List<SchemaTO> userSchemas=null;
  try {
    userSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",SchemaTO[].class));
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userSchemas;
}
Program: 60872
Project: 60872
Buggy source:
/** 
 * Get schema names.
 * @return List of schema names.
 */
public List<String> getSchemaNames(String kind){
  final List<String> schemasNames=new ArrayList<String>();
  try {
    final List<SchemaTO> userSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",SchemaTO[].class));
    for (    SchemaTO schemaTO : userSchemas) {
      schemasNames.add(schemaTO.getName());
    }
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return schemasNames;
}

Fixed version (ground truth):
/** 
 * Get schema names.
 * @return List of schema names.
 */
public List<String> getSchemaNames(final String kind){
  final List<String> schemasNames=new ArrayList<String>();
  try {
    final List<SchemaTO> userSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",SchemaTO[].class));
    for (    SchemaTO schemaTO : userSchemas) {
      schemasNames.add(schemaTO.getName());
    }
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return schemasNames;
}
Program: 60873
Project: 60873
Buggy source:
/** 
 * Delete an already existent user schema by its name.
 * @param name (e.g.:surname)
 * @return schemaTO
 */
public void deleteSchema(String kind,String name){
  try {
    restTemplate.delete(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str");
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Delete an already existent user schema by its name.
 * @param name (e.g.:surname)
 * @return schemaTO
 */
public void deleteSchema(String kind,String name){
  restTemplate.delete(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str");
}
Program: 60874
Project: 60874
Buggy source:
/** 
 * Get derived schemas.
 * @return List of derived schemas.
 */
public List<VirtualSchemaTO> getVirtualSchemas(String kind){
  List<VirtualSchemaTO> userVirtualSchemas=null;
  try {
    userVirtualSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",VirtualSchemaTO[].class));
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userVirtualSchemas;
}

Fixed version (ground truth):
/** 
 * Get derived schemas.
 * @return List of derived schemas.
 */
public List<VirtualSchemaTO> getVirtualSchemas(final String kind){
  List<VirtualSchemaTO> userVirtualSchemas=null;
  try {
    userVirtualSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",VirtualSchemaTO[].class));
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userVirtualSchemas;
}
Program: 60875
Project: 60875
Buggy source:
/** 
 * Get derived schema names.
 * @return List of derived schema names.
 */
public List<String> getDerivedSchemaNames(String kind){
  final List<String> userDerivedSchemasNames=new ArrayList<String>();
  try {
    final List<DerivedSchemaTO> userDerivedSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",DerivedSchemaTO[].class));
    for (    DerivedSchemaTO schemaTO : userDerivedSchemas) {
      userDerivedSchemasNames.add(schemaTO.getName());
    }
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userDerivedSchemasNames;
}

Fixed version (ground truth):
/** 
 * Get derived schema names.
 * @return List of derived schema names.
 */
public List<String> getDerivedSchemaNames(final String kind){
  final List<String> userDerivedSchemasNames=new ArrayList<String>();
  try {
    final List<DerivedSchemaTO> userDerivedSchemas=Arrays.asList(restTemplate.getForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",DerivedSchemaTO[].class));
    for (    DerivedSchemaTO schemaTO : userDerivedSchemas) {
      userDerivedSchemasNames.add(schemaTO.getName());
    }
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
  return userDerivedSchemasNames;
}
Program: 60876
Project: 60876
Buggy source:
/** 
 * Update an already existent user derived schema.
 * @param schemaTO updated
 */
public void updateVirtualSchema(String kind,VirtualSchemaTO schemaTO){
  try {
    restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,VirtualSchemaTO.class);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Update an already existent user derived schema.
 * @param schemaTO updated
 */
public void updateVirtualSchema(final String kind,final VirtualSchemaTO schemaTO){
  restTemplate.postForObject(baseURL + "String_Node_Str" + kind+ "String_Node_Str",schemaTO,VirtualSchemaTO.class);
}
Program: 60877
Project: 60877
Buggy source:
/** 
 * Delete an already existent user derived schema by its name.
 * @param name (e.g.:surname)
 * @return schemaTO
 */
public void deleteVirtualSchema(String kind,String name){
  try {
    restTemplate.delete(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str");
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * Delete an already existent user derived schema by its name.
 * @param name (e.g.:surname)
 */
public void deleteVirtualSchema(final String kind,final String name){
  restTemplate.delete(baseURL + "String_Node_Str" + kind+ "String_Node_Str"+ name+ "String_Node_Str");
}
Program: 60878
Project: 60878
Buggy source:
public void setProperties(final List<WorkflowFormPropertyTO> properties){
  if (properties == null) {
    this.properties.clear();
  }
 else {
    this.properties=properties;
  }
}

Fixed version (ground truth):
public void setProperties(final Collection<WorkflowFormPropertyTO> properties){
  this.properties.clear();
  if (properties != null) {
    this.properties.addAll(properties);
  }
}
Program: 60879
Project: 60879
Buggy source:
public boolean isEmpty(){
  return attributesToBeUpdated.isEmpty() && attributesToBeUpdated.isEmpty() && derivedAttributesToBeAdded.isEmpty()&& derivedAttributesToBeRemoved.isEmpty()&& virtualAttributesToBeUpdated.isEmpty()&& virtualAttributesToBeRemoved.isEmpty()&& resourcesToBeAdded.isEmpty()&& resourcesToBeRemoved.isEmpty();
}

Fixed version (ground truth):
public boolean isEmpty(){
  return attributesToBeUpdated.isEmpty() && attributesToBeRemoved.isEmpty() && derivedAttributesToBeAdded.isEmpty()&& derivedAttributesToBeRemoved.isEmpty()&& virtualAttributesToBeUpdated.isEmpty()&& virtualAttributesToBeRemoved.isEmpty()&& resourcesToBeAdded.isEmpty()&& resourcesToBeRemoved.isEmpty();
}
Program: 60880
Project: 60880
Buggy source:
public FieldPanel setNewModel(final List<String> list){
  setNewModel(new Model(){
    private static final long serialVersionUID=1088212074765051906L;
    @Override public Serializable getObject(){
      return list != null && !list.isEmpty() ? list.get(0) : null;
    }
    @Override public void setObject(    Serializable object){
      if (object != null) {
        list.clear();
        list.add(object.toString());
      }
    }
  }
);
  return this;
}

Fixed version (ground truth):
public FieldPanel setNewModel(final List<String> list){
  setNewModel(new Model(){
    private static final long serialVersionUID=1088212074765051906L;
    @Override public Serializable getObject(){
      return list != null && !list.isEmpty() ? list.get(0) : null;
    }
    @Override public void setObject(    Serializable object){
      list.clear();
      if (object != null) {
        list.add(object.toString());
      }
    }
  }
);
  return this;
}
Program: 60881
Project: 60881
Buggy source:
@Override public void setObject(Serializable object){
  if (object != null) {
    list.clear();
    list.add(object.toString());
  }
}

Fixed version (ground truth):
@Override public void setObject(Serializable object){
  list.clear();
  if (object != null) {
    list.add(object.toString());
  }
}
Program: 60882
Project: 60882
Buggy source:
@Override public void onClick(final AjaxRequestTarget target){
  try {
    userRestClient.delete(model.getObject().getId());
    info(getString("String_Node_Str"));
  }
 catch (  SyncopeClientCompositeErrorException scce) {
    error(scce.getMessage());
  }
  target.add(feedbackPanel);
  final EventDataWrapper data=new EventDataWrapper();
  data.setTarget(target);
  send(getParent(),Broadcast.BREADTH,data);
}

Fixed version (ground truth):
@Override public void onClick(final AjaxRequestTarget target){
  try {
    userRestClient.delete(model.getObject().getId());
    info(getString("String_Node_Str"));
  }
 catch (  SyncopeClientCompositeErrorException scce) {
    error(scce.getMessage());
  }
  target.add(feedbackPanel);
  final EventDataWrapper data=new EventDataWrapper();
  data.setTarget(target);
  send(getPage(),Broadcast.BREADTH,data);
}
Program: 60884
Project: 60884
Buggy source:
@Override public void populateItem(final Item<ICellPopulator<UserTO>> cellItem,final String componentId,final IModel<UserTO> model){
  Panel panel=new DeleteLinkPanel(componentId,model);
  MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  panel.add(new IndicatingDeleteOnConfirmAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      try {
        userRestClient.delete(model.getObject().getId());
        info(getString("String_Node_Str"));
      }
 catch (      SyncopeClientCompositeErrorException scce) {
        error(scce.getMessage());
      }
      target.add(feedbackPanel);
      final EventDataWrapper data=new EventDataWrapper();
      data.setTarget(target);
      send(getParent(),Broadcast.BREADTH,data);
    }
  }
);
  cellItem.add(panel);
}

Fixed version (ground truth):
@Override public void populateItem(final Item<ICellPopulator<UserTO>> cellItem,final String componentId,final IModel<UserTO> model){
  Panel panel=new DeleteLinkPanel(componentId,model);
  MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  panel.add(new IndicatingDeleteOnConfirmAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      try {
        userRestClient.delete(model.getObject().getId());
        info(getString("String_Node_Str"));
      }
 catch (      SyncopeClientCompositeErrorException scce) {
        error(scce.getMessage());
      }
      target.add(feedbackPanel);
      final EventDataWrapper data=new EventDataWrapper();
      data.setTarget(target);
      send(getPage(),Broadcast.BREADTH,data);
    }
  }
);
  cellItem.add(panel);
}
Program: 60885
Project: 60885
Buggy source:
public ConflictResolutionAction getConflictResolutionAction(){
  return conflictResolutionAction;
}

Fixed version (ground truth):
public ConflictResolutionAction getConflictResolutionAction(){
  if (conflictResolutionAction == null) {
    return conflictResolutionAction.IGNORE;
  }
 else {
    return conflictResolutionAction;
  }
}
Program: 60886
Project: 60886
Buggy source:
public void setConflictResolutionAction(ConflictResolutionAction conflictResolutionAction){
  this.conflictResolutionAction=conflictResolutionAction;
}

Fixed version (ground truth):
public void setConflictResolutionAction(final ConflictResolutionAction conflictResolutionAction){
  this.conflictResolutionAction=conflictResolutionAction;
}
Program: 60888
Project: 60888
Buggy source:
public void setSchemaList(boolean schemaList){
  this.schemaList=schemaList;
}

Fixed version (ground truth):
public void setSchemaList(final SchemaList schemaList){
  this.schemaList=schemaList;
}
Program: 60890
Project: 60890
Buggy source:
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  final RoleTO roleTO=(RoleTO)form.getDefaultModelObject();
  try {
    final List<String> entitlementList=new ArrayList<String>(entitlementsPalette.getModelCollection().size());
    for (    String entitlement : entitlementsPalette.getModelCollection()) {
      entitlementList.add(entitlement);
    }
    roleTO.setEntitlements(entitlementList);
    if (createFlag) {
      roleRestClient.createRole(roleTO);
    }
 else {
      setupRoleMod(roleTO);
      if (roleMod != null) {
        roleRestClient.updateRole(roleMod);
      }
    }
    ((Roles)callerPageRef.getPage()).setOperationResult(true);
    window.close(target);
  }
 catch (  Exception e) {
    error(getString("String_Node_Str") + "String_Node_Str" + e.getMessage());
    target.add(feedbackPanel);
  }
}

Fixed version (ground truth):
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  final RoleTO roleTO=(RoleTO)form.getDefaultModelObject();
  try {
    final List<String> entitlementList=new ArrayList<String>(attributesPanel.getEntitlementsPalette().getModelCollection().size());
    for (    String entitlement : attributesPanel.getEntitlementsPalette().getModelCollection()) {
      entitlementList.add(entitlement);
    }
    roleTO.setEntitlements(entitlementList);
    if (createFlag) {
      roleRestClient.createRole(roleTO);
    }
 else {
      setupRoleMod(roleTO);
      if (roleMod != null) {
        roleRestClient.updateRole(roleMod);
      }
    }
    ((Roles)callerPageRef.getPage()).setModalResult(true);
    window.close(target);
  }
 catch (  Exception e) {
    error(getString("String_Node_Str") + "String_Node_Str" + e.getMessage());
    target.add(feedbackPanel);
  }
}
Program: 60892
Project: 60892
Buggy source:
@Override public void onClose(final AjaxRequestTarget target){
  target.add(container);
  if (operationResult) {
    getSession().info(getString("String_Node_Str"));
  }
  setResponsePage(Roles.class);
}

Fixed version (ground truth):
@Override public void onClose(final AjaxRequestTarget target){
  final TreeNodeClickUpdate data=new TreeNodeClickUpdate(target,nodePanel.getSelectedNode());
  send(getPage(),Broadcast.BREADTH,data);
  target.add(container);
  if (modalResult) {
    getSession().info(getString("String_Node_Str"));
    target.add(feedbackPanel);
    modalResult=false;
  }
}
Program: 60893
Project: 60893
Buggy source:
public Roles(final PageParameters parameters){
  super(parameters);
  add(createRoleWin=new ModalWindow("String_Node_Str"));
  createRoleWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  createRoleWin.setInitialHeight(WIN_HEIGHT);
  createRoleWin.setInitialWidth(WIN_WIDTH);
  createRoleWin.setCookieName("String_Node_Str");
  container=new WebMarkupContainer("String_Node_Str");
  IColumn[] columns=new IColumn[]{new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT,30,Unit.EM),getString("String_Node_Str"),"String_Node_Str"),new PropertyEditableColumn(new ColumnLocation(Alignment.LEFT,20,Unit.EM),getString("String_Node_Str"),"String_Node_Str",createRoleWin,Roles.this.getPageReference())};
  Form form=new Form("String_Node_Str");
  add(form);
  tree=new TreeTable("String_Node_Str",roleTreeBuilder.build(),columns);
  form.add(tree);
  tree.getTreeState().expandAll();
  if (AjaxRequestTarget.get() != null) {
    tree.updateTree();
  }
  container.add(tree);
  container.setOutputMarkupId(true);
  form.add(container);
  createRoleWin.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    @Override public void onClose(    final AjaxRequestTarget target){
      target.add(container);
      if (operationResult) {
        getSession().info(getString("String_Node_Str"));
      }
      setResponsePage(Roles.class);
    }
  }
);
}

Fixed version (ground truth):
public Roles(final PageParameters parameters){
  super(parameters);
  add(createRoleWin=new ModalWindow("String_Node_Str"));
  createRoleWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  createRoleWin.setInitialHeight(WIN_HEIGHT);
  createRoleWin.setInitialWidth(WIN_WIDTH);
  createRoleWin.setCookieName("String_Node_Str");
  container=new WebMarkupContainer("String_Node_Str");
  container.setOutputMarkupId(true);
  add(container);
  final TreeRolePanel treePanel=new TreeRolePanel("String_Node_Str");
  treePanel.setOutputMarkupId(true);
  container.add(treePanel);
  final RoleSummaryPanel nodePanel=new RoleSummaryPanel("String_Node_Str",createRoleWin,Roles.this.getPageReference());
  nodePanel.setOutputMarkupId(true);
  container.add(nodePanel);
  createRoleWin.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      final TreeNodeClickUpdate data=new TreeNodeClickUpdate(target,nodePanel.getSelectedNode());
      send(getPage(),Broadcast.BREADTH,data);
      target.add(container);
      if (modalResult) {
        getSession().info(getString("String_Node_Str"));
        target.add(feedbackPanel);
        modalResult=false;
      }
    }
  }
);
  container.add(createRoleWin);
}
Program: 60895
Project: 60895
Buggy source:
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  final UserTO userTO=(UserTO)form.getModelObject();
  try {
    if (userTO.getId() == 0) {
      userRestClient.create(userTO);
    }
 else {
      setupUserMod(userTO);
      if (userMod != null) {
        userRestClient.update(userMod);
      }
    }
    ((Users)callerPageRef.getPage()).setModalResult(true);
    window.close(target);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
    error(getString("String_Node_Str") + "String_Node_Str" + e.getMessage());
    target.add(feedbackPanel);
  }
}

Fixed version (ground truth):
@Override protected void onSubmit(final AjaxRequestTarget target,final Form form){
  final UserTO userTO=(UserTO)form.getModelObject();
  try {
    if (userTO.getId() == 0) {
      userRestClient.create(userTO);
    }
 else {
      setupUserMod(userTO);
      if (userMod != null) {
        userRestClient.update(userMod);
      }
    }
    ((BasePage)callerPageRef.getPage()).setModalResult(true);
    window.close(target);
  }
 catch (  SyncopeClientCompositeErrorException e) {
    LOG.error("String_Node_Str",e);
    error(getString("String_Node_Str") + "String_Node_Str" + e.getMessage());
    target.add(feedbackPanel);
  }
}
Program: 60898
Project: 60898
Buggy source:
/** 
 * Get remote object used by the propagation manager in order to choose for a create (object doesn't exist) or an update (object exists).
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param operationType resource operation type
 * @param objectClass ConnId's object class
 * @param uid ConnId's Uid
 * @param options ConnId's OperationOptions
 * @return ConnId's connector object for given uid
 */
public ConnectorObject getObject(final PropagationMode propagationMode,final PropagationOperation operationType,final ObjectClass objectClass,final Uid uid,final OperationOptions options){
  ConnectorObject result=null;
  if (capabitilies.contains(ConnectorCapability.SEARCH)) {
    if (operationType == null) {
      result=connector.getObject(objectClass,uid,options);
    }
 else {
switch (operationType) {
case CREATE:
        if (propagationMode == null || (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_CREATE) : capabitilies.contains(ConnectorCapability.ASYNC_CREATE))) {
          result=connector.getObject(objectClass,uid,options);
        }
      break;
case UPDATE:
    if (propagationMode == null || (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_UPDATE) : capabitilies.contains(ConnectorCapability.ASYNC_UPDATE))) {
      result=connector.getObject(objectClass,uid,options);
    }
  break;
default :
result=connector.getObject(objectClass,uid,options);
}
}
}
return result;
}

Fixed version (ground truth):
/** 
 * Get remote object used by the propagation manager in order to choose for a create (object doesn't exist) or an update (object exists).
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param operationType resource operation type
 * @param objectClass ConnId's object class
 * @param uid ConnId's Uid
 * @param options ConnId's OperationOptions
 * @return ConnId's connector object for given uid
 */
public ConnectorObject getObject(final PropagationMode propagationMode,final PropagationOperation operationType,final ObjectClass objectClass,final Uid uid,final OperationOptions options){
  ConnectorObject result=null;
  if (capabitilies.contains(ConnectorCapability.SEARCH)) {
    if (operationType == null) {
      result=connector.getObject(objectClass,uid,options);
    }
 else {
switch (operationType) {
case CREATE:
        if (propagationMode == null || (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_CREATE) : capabitilies.contains(ConnectorCapability.ASYNC_CREATE))) {
          result=connector.getObject(objectClass,uid,options);
        }
      break;
case UPDATE:
    if (propagationMode == null || (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_UPDATE) : capabitilies.contains(ConnectorCapability.ASYNC_UPDATE))) {
      result=connector.getObject(objectClass,uid,options);
    }
  break;
default :
result=connector.getObject(objectClass,uid,options);
}
}
}
 else {
LOG.info("String_Node_Str" + "String_Node_Str",capabitilies);
}
return result;
}
Program: 60899
Project: 60899
Buggy source:
/** 
 * Read latest sync token from a connector instance.
 * @return latest sync token
 */
public SyncToken getLatestSyncToken(){
  SyncToken result=null;
  if (capabitilies.contains(ConnectorCapability.SYNC)) {
    result=connector.getLatestSyncToken(ObjectClass.ACCOUNT);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Read latest sync token from a connector instance.
 * @return latest sync token
 */
public SyncToken getLatestSyncToken(){
  SyncToken result=null;
  if (capabitilies.contains(ConnectorCapability.SYNC)) {
    result=connector.getLatestSyncToken(ObjectClass.ACCOUNT);
  }
 else {
    LOG.info("String_Node_Str" + "String_Node_Str",capabitilies);
  }
  return result;
}
Program: 60900
Project: 60900
Buggy source:
/** 
 * Update user on a connector instance.
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param objectClass ConnId's object class
 * @param uid user to be updated
 * @param attrs attributes for update
 * @param options ConnId's OperationOptions
 * @param propagationAttempted if update is actually performed (based onconnector instance's capabilities)
 * @return Uid for created user
 */
public Uid update(final PropagationMode propagationMode,final ObjectClass objectClass,final Uid uid,final Set<Attribute> attrs,final OperationOptions options,final Set<String> propagationAttempted){
  Uid result=null;
  if (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_UPDATE) : capabitilies.contains(ConnectorCapability.ASYNC_UPDATE)) {
    propagationAttempted.add("String_Node_Str");
    result=connector.update(objectClass,uid,attrs,options);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Update user on a connector instance.
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param objectClass ConnId's object class
 * @param uid user to be updated
 * @param attrs attributes for update
 * @param options ConnId's OperationOptions
 * @param propagationAttempted if update is actually performed (based onconnector instance's capabilities)
 * @return Uid for created user
 */
public Uid update(final PropagationMode propagationMode,final ObjectClass objectClass,final Uid uid,final Set<Attribute> attrs,final OperationOptions options,final Set<String> propagationAttempted){
  Uid result=null;
  if (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_UPDATE) : capabitilies.contains(ConnectorCapability.ASYNC_UPDATE)) {
    propagationAttempted.add("String_Node_Str");
    result=connector.update(objectClass,uid,attrs,options);
  }
 else {
    LOG.info("String_Node_Str" + "String_Node_Str",uid.getUidValue(),capabitilies);
  }
  return result;
}
Program: 60901
Project: 60901
Buggy source:
/** 
 * Delete user on a connector instance.
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param objectClass ConnId's object class
 * @param uid user to be deleted
 * @param options ConnId's OperationOptions
 * @param propagationAttempted if deletion is actually performed (based onconnector instance's capabilities)
 */
public void delete(final PropagationMode propagationMode,final ObjectClass objectClass,final Uid uid,final OperationOptions options,final Set<String> propagationAttempted){
  if (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_DELETE) : capabitilies.contains(ConnectorCapability.ASYNC_DELETE)) {
    propagationAttempted.add("String_Node_Str");
    connector.delete(objectClass,uid,options);
  }
}

Fixed version (ground truth):
/** 
 * Delete user on a connector instance.
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param objectClass ConnId's object class
 * @param uid user to be deleted
 * @param options ConnId's OperationOptions
 * @param propagationAttempted if deletion is actually performed (based onconnector instance's capabilities)
 */
public void delete(final PropagationMode propagationMode,final ObjectClass objectClass,final Uid uid,final OperationOptions options,final Set<String> propagationAttempted){
  if (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_DELETE) : capabitilies.contains(ConnectorCapability.ASYNC_DELETE)) {
    propagationAttempted.add("String_Node_Str");
    connector.delete(objectClass,uid,options);
  }
 else {
    LOG.info("String_Node_Str" + "String_Node_Str",uid.getUidValue(),capabitilies);
  }
}
Program: 60902
Project: 60902
Buggy source:
/** 
 * Sync users from a connector instance.
 * @param token to be passed to the underlying connector
 * @return list of sync operations to be performed
 */
public List<SyncDelta> sync(final SyncToken token){
  final List<SyncDelta> result=new ArrayList<SyncDelta>();
  if (capabitilies.contains(ConnectorCapability.SYNC)) {
    connector.sync(ObjectClass.ACCOUNT,token,new SyncResultsHandler(){
      @Override public boolean handle(      final SyncDelta delta){
        return result.add(delta);
      }
    }
,null);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Sync users from a connector instance.
 * @param token to be passed to the underlying connector
 * @return list of sync operations to be performed
 */
public List<SyncDelta> sync(final SyncToken token){
  final List<SyncDelta> result=new ArrayList<SyncDelta>();
  if (capabitilies.contains(ConnectorCapability.SYNC)) {
    connector.sync(ObjectClass.ACCOUNT,token,new SyncResultsHandler(){
      @Override public boolean handle(      final SyncDelta delta){
        return result.add(delta);
      }
    }
,null);
  }
 else {
    LOG.info("String_Node_Str" + "String_Node_Str",capabitilies);
  }
  return result;
}
Program: 60903
Project: 60903
Buggy source:
/** 
 * Resolve username to ConnId's Uid.
 * @param objectClass ConnId's object class
 * @param username to resolve
 * @param options ConnId's OperationOptions
 * @return the resolved Uid (if connector instance is capable); can be nullif not found
 */
public Uid resolveUsername(final ObjectClass objectClass,final String username,final OperationOptions options){
  Uid result=null;
  if (capabitilies.contains(ConnectorCapability.RESOLVE)) {
    result=connector.resolveUsername(objectClass,username,options);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Resolve username to ConnId's Uid.
 * @param objectClass ConnId's object class
 * @param username to resolve
 * @param options ConnId's OperationOptions
 * @return the resolved Uid (if connector instance is capable); can be nullif not found
 */
public Uid resolveUsername(final ObjectClass objectClass,final String username,final OperationOptions options){
  Uid result=null;
  if (capabitilies.contains(ConnectorCapability.RESOLVE)) {
    result=connector.resolveUsername(objectClass,username,options);
  }
 else {
    LOG.info("String_Node_Str" + "String_Node_Str",username,capabitilies);
  }
  return result;
}
Program: 60904
Project: 60904
Buggy source:
/** 
 * Create user on a connector instance.
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param objectClass ConnId's object class
 * @param attrs attributes for creation
 * @param options ConnId's OperationOptions
 * @param propagationAttempted if creation is actually performed (based onconnector instance's capabilities)
 * @return Uid for created user
 */
public Uid create(final PropagationMode propagationMode,final ObjectClass objectClass,final Set<Attribute> attrs,final OperationOptions options,final Set<String> propagationAttempted){
  Uid result=null;
  if (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_CREATE) : capabitilies.contains(ConnectorCapability.ASYNC_CREATE)) {
    propagationAttempted.add("String_Node_Str");
    result=connector.create(objectClass,attrs,options);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Create user on a connector instance.
 * @param propagationMode propagation mode (SYNC / ASYNC)
 * @param objectClass ConnId's object class
 * @param attrs attributes for creation
 * @param options ConnId's OperationOptions
 * @param propagationAttempted if creation is actually performed (based onconnector instance's capabilities)
 * @return Uid for created user
 */
public Uid create(final PropagationMode propagationMode,final ObjectClass objectClass,final Set<Attribute> attrs,final OperationOptions options,final Set<String> propagationAttempted){
  Uid result=null;
  if (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_CREATE) : capabitilies.contains(ConnectorCapability.ASYNC_CREATE)) {
    propagationAttempted.add("String_Node_Str");
    result=connector.create(objectClass,attrs,options);
  }
 else {
    LOG.info("String_Node_Str" + "String_Node_Str",capabitilies);
  }
  return result;
}