nus-yam/ex-repair huggingface dataset:
Program: 13269
Project: 13269
Buggy source:
public boolean evaluateOnResponse(final ServerContext context,final ScriptState state,final Resource resource) throws ResourceException {
  if (onFailure != null) {
    ScriptEntry scriptEntry=onFailure.getRight();
    if (!scriptEntry.isActive()) {
      throw new ServiceUnavailableException("String_Node_Str" + onFailure.getRight().getName());
    }
    Script script=scriptEntry.getScript(context);
    script.put("String_Node_Str",getRequestMap(state.request,context));
    script.put("String_Node_Str",context);
    script.put("String_Node_Str",resource);
    script.put("String_Node_Str",getLazyContext(context));
    try {
      state.state=script.eval();
    }
 catch (    Throwable t) {
      logger.debug("String_Node_Str",onFailure.getRight().getName(),onFailure.getLeft(),t);
      throw Utils.adapt(t);
    }
  }
  return true;
}

Fixed version (ground truth):
public boolean evaluateOnResponse(final ServerContext context,final ScriptState state,final Resource resource) throws ResourceException {
  if (onResponse != null) {
    ScriptEntry scriptEntry=onResponse.getRight();
    if (!scriptEntry.isActive()) {
      throw new ServiceUnavailableException("String_Node_Str" + onResponse.getRight().getName());
    }
    Script script=scriptEntry.getScript(context);
    script.put("String_Node_Str",getRequestMap(state.request,context));
    script.put("String_Node_Str",context);
    script.put("String_Node_Str",resource);
    script.put("String_Node_Str",getLazyContext(context));
    try {
      state.state=script.eval();
    }
 catch (    Throwable t) {
      logger.debug("String_Node_Str",onResponse.getRight().getName(),onResponse.getLeft(),t);
      throw Utils.adapt(t);
    }
  }
  return true;
}
Program: 13270
Project: 13270
Buggy source:
public List<Resource> query(QueryRequest request) throws ResourceException {
  List<Resource> results=new ArrayList<Resource>();
  logger.trace("String_Node_Str",request.getResourceName(),request.getResourceName());
  Map<String,Object> result=new HashMap<String,Object>();
  ODatabaseDocumentTx db=getConnection();
  try {
    long start=System.currentTimeMillis();
    List<ODocument> queryResult=queries.query(request.getResourceName(),request,db);
    long end=System.currentTimeMillis();
    if (queryResult != null) {
      long convStart=System.currentTimeMillis();
      for (      ODocument entry : queryResult) {
        Map<String,Object> convertedEntry=DocumentUtil.toMap(entry);
        results.add(new Resource((String)convertedEntry.get(DocumentUtil.TAG_ID),(String)convertedEntry.get(DocumentUtil.TAG_REV),new JsonValue(convertedEntry)));
      }
      long convEnd=System.currentTimeMillis();
      result.put(QueryConstants.STATISTICS_CONVERSION_TIME,Long.valueOf(convEnd - convStart));
    }
    result.put(QueryConstants.STATISTICS_QUERY_TIME,Long.valueOf(end - start));
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str",new Object[]{((List)result.get(QueryConstants.QUERY_RESULT)).size(),result.get(QueryConstants.STATISTICS_QUERY_TIME),result.get(QueryConstants.STATISTICS_CONVERSION_TIME)});
    }
    return results;
  }
  finally {
    if (db != null) {
      db.close();
    }
  }
}

Fixed version (ground truth):
public List<Resource> query(QueryRequest request) throws ResourceException {
  List<Resource> results=new ArrayList<Resource>();
  logger.trace("String_Node_Str",request.getResourceName(),request.getResourceName());
  Map<String,Object> result=new HashMap<String,Object>();
  ODatabaseDocumentTx db=getConnection();
  try {
    long start=System.currentTimeMillis();
    List<ODocument> queryResult=queries.query(request.getResourceName(),request,db);
    long end=System.currentTimeMillis();
    if (queryResult != null) {
      long convStart=System.currentTimeMillis();
      for (      ODocument entry : queryResult) {
        Map<String,Object> convertedEntry=DocumentUtil.toMap(entry);
        results.add(new Resource((String)convertedEntry.get(DocumentUtil.TAG_ID),(String)convertedEntry.get(DocumentUtil.TAG_REV),new JsonValue(convertedEntry)));
      }
      long convEnd=System.currentTimeMillis();
      result.put(QueryConstants.STATISTICS_CONVERSION_TIME,Long.valueOf(convEnd - convStart));
    }
    result.put(QueryConstants.STATISTICS_QUERY_TIME,Long.valueOf(end - start));
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str",new Object[]{results.size(),result.get(QueryConstants.STATISTICS_QUERY_TIME),result.get(QueryConstants.STATISTICS_CONVERSION_TIME)});
    }
    return results;
  }
  finally {
    if (db != null) {
      db.close();
    }
  }
}
Program: 13271
Project: 13271
Buggy source:
private JsonValue getRequestMap(String resourceName,String method){
  JsonValue req=new JsonValue(new HashMap<String,Object>());
  req.add("String_Node_Str",resourceName.substring(1));
  req.add("String_Node_Str",method);
  return req;
}

Fixed version (ground truth):
private JsonValue getRequestMap(String resourceName,String method){
  JsonValue req=new JsonValue(new HashMap<String,Object>());
  req.add("String_Node_Str",resourceName);
  req.add("String_Node_Str",method);
  return req;
}
Program: 13272
Project: 13272
Buggy source:
/** 
 * Validates the request by authenticating against either the client certificate in the request, internally or Basic Authentication from the request header internally.
 * @param messageInfo {@inheritDoc}
 * @param clientSubject {@inheritDoc}
 * @param serviceSubject {@inheritDoc}
 * @param securityContextMapper {@inheritDoc}
 * @return {@inheritDoc}
 */
@Override protected AuthStatus validateRequest(MessageInfo messageInfo,Subject clientSubject,Subject serviceSubject,SecurityContextMapper securityContextMapper){
  HttpServletRequest req=(HttpServletRequest)messageInfo.getRequestMessage();
  boolean authenticated;
  final String headerLogin=req.getHeader(HEADER_USERNAME);
  String basicAuth=req.getHeader("String_Node_Str");
  if (allowClientCertOnly(req)) {
    authenticated=authenticateUsingClientCert(req,securityContextMapper);
  }
 else   if (headerLogin != null) {
    authenticated=authenticateUser(req,securityContextMapper);
  }
 else   if (basicAuth != null) {
    authenticated=authenticateUsingBasicAuth(basicAuth,securityContextMapper);
  }
 else {
    return AuthStatus.SEND_FAILURE;
  }
  securityContextMapper.setResource(queryOnResource);
  if (authenticated) {
    clientSubject.getPrincipals().add(new Principal(){
      public String getName(){
        return headerLogin;
      }
    }
);
  }
  return authenticated ? AuthStatus.SUCCESS : AuthStatus.SEND_FAILURE;
}

Fixed version (ground truth):
/** 
 * Validates the request by authenticating against either the client certificate in the request, internally or Basic Authentication from the request header internally.
 * @param messageInfo {@inheritDoc}
 * @param clientSubject {@inheritDoc}
 * @param serviceSubject {@inheritDoc}
 * @param securityContextMapper {@inheritDoc}
 * @return {@inheritDoc}
 */
@Override protected AuthStatus validateRequest(MessageInfo messageInfo,Subject clientSubject,Subject serviceSubject,SecurityContextMapper securityContextMapper){
  HttpServletRequest req=(HttpServletRequest)messageInfo.getRequestMessage();
  boolean authenticated;
  final String headerLogin=req.getHeader(HEADER_USERNAME);
  String basicAuth=req.getHeader("String_Node_Str");
  if (allowClientCertOnly(req)) {
    authenticated=authenticateUsingClientCert(req,securityContextMapper);
  }
 else   if (headerLogin != null) {
    authenticated=authenticateUser(req,securityContextMapper);
  }
 else   if (basicAuth != null) {
    authenticated=authenticateUsingBasicAuth(basicAuth,securityContextMapper);
  }
 else {
    return AuthStatus.SEND_FAILURE;
  }
  securityContextMapper.setResource(queryOnResource);
  final String authcid=securityContextMapper.getAuthcid();
  if (authenticated) {
    clientSubject.getPrincipals().add(new Principal(){
      public String getName(){
        return authcid;
      }
    }
);
  }
  return authenticated ? AuthStatus.SUCCESS : AuthStatus.SEND_FAILURE;
}
Program: 13273
Project: 13273
Buggy source:
public String getName(){
  return headerLogin;
}

Fixed version (ground truth):
public String getName(){
  return authcid;
}
Program: 13274
Project: 13274
Buggy source:
/** 
 * Copies the authentication principal header, set by the authentication filter, into the request as an attribute with the key SecurityContextFactory.ATTRIBUTE_AUTHCID and copies the authentication context attribute, set by the authentication filter, into the request as an attributes with the key SecurityContextFactory.ATTRIBUTES_AUTHZID.
 * @param servletRequest {@inheritDoc}
 * @param servletResponse {@inheritDoc}
 * @throws IOException {@inheritDoc}
 * @throws ServletException {@inheritDoc}
 */
@Override public void doFilter(ServletRequest servletRequest,ServletResponse servletResponse) throws IOException, ServletException {
  HttpServletRequest request=(HttpServletRequest)servletRequest;
  Map<String,Object> authzid=(Map<String,Object>)request.getAttribute(AuthNFilter.ATTRIBUTE_AUTH_CONTEXT);
  String authcid=null;
  if (authzid != null) {
    authcid=(String)authzid.get("String_Node_Str");
  }
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHCID,authcid);
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHZID,authzid);
  filterChain.doFilter(request,servletResponse);
}

Fixed version (ground truth):
/** 
 * Copies the authentication principal header, set by the authentication filter, into the request as an attribute with the key SecurityContextFactory.ATTRIBUTE_AUTHCID and copies the authentication context attribute, set by the authentication filter, into the request as an attributes with the key SecurityContextFactory.ATTRIBUTES_AUTHZID.
 * @param servletRequest {@inheritDoc}
 * @param servletResponse {@inheritDoc}
 * @throws IOException {@inheritDoc}
 * @throws ServletException {@inheritDoc}
 */
@Override public void doFilter(ServletRequest servletRequest,ServletResponse servletResponse) throws IOException, ServletException {
  HttpServletRequest request=(HttpServletRequest)servletRequest;
  Map<String,Object> authzid=(Map<String,Object>)request.getAttribute(AuthNFilter.ATTRIBUTE_AUTH_CONTEXT);
  String authcid=request.getHeader(AuthNFilter.ATTRIBUTE_AUTH_PRINCIPAL);
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHCID,authcid);
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHZID,authzid);
  filterChain.doFilter(request,servletResponse);
}
Program: 13276
Project: 13276
Buggy source:
public CryptoService access(){
  return null;
}

Fixed version (ground truth):
public CryptoService access(){
  return cryptoService;
}
Program: 13279
Project: 13279
Buggy source:
MappedTableHandler getMappedTableHandler(DatabaseType databaseType,JsonValue tableConfig,String table,Map objectToColumn,String dbSchemaName,JsonValue explicitQueries,int maxBatchSize) throws InternalServerErrorException {
  final Accessor<CryptoService> cryptoServiceAccessor=new Accessor<CryptoService>(){
    public CryptoService access(){
      return null;
    }
  }
;
  MappedTableHandler handler=null;
switch (databaseType) {
case DB2:
    handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DB2SQLExceptionHandler(),cryptoServiceAccessor);
  break;
case ORACLE:
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
break;
case POSTGRESQL:
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
break;
case MYSQL:
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new MySQLExceptionHandler(),cryptoServiceAccessor);
break;
case SQLSERVER:
handler=new MSSQLMappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
break;
default :
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
}
return handler;
}

Fixed version (ground truth):
MappedTableHandler getMappedTableHandler(DatabaseType databaseType,JsonValue tableConfig,String table,Map objectToColumn,String dbSchemaName,JsonValue explicitQueries,int maxBatchSize) throws InternalServerErrorException {
  final Accessor<CryptoService> cryptoServiceAccessor=new Accessor<CryptoService>(){
    public CryptoService access(){
      return cryptoService;
    }
  }
;
  MappedTableHandler handler=null;
switch (databaseType) {
case DB2:
    handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DB2SQLExceptionHandler(),cryptoServiceAccessor);
  break;
case ORACLE:
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
break;
case POSTGRESQL:
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
break;
case MYSQL:
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new MySQLExceptionHandler(),cryptoServiceAccessor);
break;
case SQLSERVER:
handler=new MSSQLMappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
break;
default :
handler=new MappedTableHandler(table,objectToColumn,dbSchemaName,explicitQueries,new DefaultSQLExceptionHandler(),cryptoServiceAccessor);
}
return handler;
}
Program: 13282
Project: 13282
Buggy source:
/** 
 * Deallocate every resource use by this service.
 */
void dispose(){
  if (null != onCreate) {
    onCreate.deleteScriptListener(this);
  }
  if (null != onCreate) {
    onRead.deleteScriptListener(this);
  }
  if (null != onCreate) {
    onUpdate.deleteScriptListener(this);
  }
  if (null != onCreate) {
    onDelete.deleteScriptListener(this);
  }
  if (null != onCreate) {
    onValidate.deleteScriptListener(this);
  }
  if (null != onCreate) {
    onRetrieve.deleteScriptListener(this);
  }
  if (null != onCreate) {
    onStore.deleteScriptListener(this);
  }
}

Fixed version (ground truth):
/** 
 * Deallocate every resource use by this service.
 */
void dispose(){
  if (null != onCreate) {
    onCreate.deleteScriptListener(this);
  }
  if (null != onRead) {
    onRead.deleteScriptListener(this);
  }
  if (null != onUpdate) {
    onUpdate.deleteScriptListener(this);
  }
  if (null != onDelete) {
    onDelete.deleteScriptListener(this);
  }
  if (null != onValidate) {
    onValidate.deleteScriptListener(this);
  }
  if (null != onRetrieve) {
    onRetrieve.deleteScriptListener(this);
  }
  if (null != onStore) {
    onStore.deleteScriptListener(this);
  }
}
Program: 13283
Project: 13283
Buggy source:
/** 
 * Decrypt the value
 * @param value an json value with poentially encrypted value(s)
 * @return object with values decrypted
 * @throws InternalServerErrorException if decryption failed for any reason
 */
private Resource decrypt(final Resource value) throws InternalServerErrorException {
  try {
    return new Resource(value.getId(),value.getRevision(),null != value.getContent() ? service.decrypt(value.getContent()) : null);
  }
 catch (  JsonException je) {
    throw new InternalServerErrorException(je);
  }
}

Fixed version (ground truth):
/** 
 * Decrypt the value
 * @param value a json value with potentially encrypted value(s)
 * @return object with values decrypted
 * @throws InternalServerErrorException if decryption failed for any reason
 */
private Resource decrypt(final Resource value) throws InternalServerErrorException {
  try {
    return new Resource(value.getId(),value.getRevision(),null != value.getContent() ? cryptoService.decrypt(value.getContent()) : null);
  }
 catch (  JsonException je) {
    throw new InternalServerErrorException(je);
  }
}
Program: 13284
Project: 13284
Buggy source:
@Override public void createInstance(ServerContext context,CreateRequest request,ResultHandler<Resource> handler){
  logger.debug("String_Node_Str",name,request.getNewResourceId());
  try {
    JsonValue jv=decrypt(request.getContent());
    execScript(context,"String_Node_Str",onCreate,jv);
    onStore(context,jv);
    CreateRequest createRequest=Requests.copyOfCreateRequest(request);
    createRequest.setResourceName(repoId(null));
    Resource _new=context.getConnection().create(context,createRequest);
    logActivity(context,managedId(_new.getId()),null,null,jv);
    onCreate(context,managedId(_new.getId()),_new);
    handler.handleResult(_new);
  }
 catch (  ResourceException e) {
    handler.handleError(e);
  }
catch (  Exception e) {
    handler.handleError(new InternalServerErrorException(e));
  }
}

Fixed version (ground truth):
@Override public void createInstance(ServerContext context,CreateRequest request,ResultHandler<Resource> handler){
  logger.debug("String_Node_Str",name,request.getNewResourceId());
  try {
    JsonValue value=decrypt(request.getContent());
    execScript(context,"String_Node_Str",onCreate,value);
    onStore(context,value);
    CreateRequest createRequest=Requests.copyOfCreateRequest(request);
    createRequest.setContent(value);
    createRequest.setResourceName(repoId(null));
    Resource _new=context.getConnection().create(context,createRequest);
    logActivity(context,managedId(_new.getId()),null,null,value);
    onCreate(context,managedId(_new.getId()),_new);
    handler.handleResult(_new);
  }
 catch (  ResourceException e) {
    handler.handleError(e);
  }
catch (  Exception e) {
    handler.handleError(new InternalServerErrorException(e));
  }
}
Program: 13286
Project: 13286
Buggy source:
/** 
 * Register a service implementation if this component is active If a service already exists at the resource context, this replaces it
 * @param scriptConfig the configuration for the script as a service to register the resource context
 */
protected void register(JsonValue scriptConfig,String configName){
  if (context != null) {
    String resourceContext=scriptConfig.get(CONFIG_RESOURCE_CONTEXT).asString();
    if (resourceContext != null) {
      Script script=Scripts.newInstance((String)context.getProperties().get(Constants.SERVICE_PID),scriptConfig);
      scripts.put(resourceContext,new RegisteredScript(getParameters(scriptConfig),script,scriptConfig));
      logger.info("String_Node_Str",resourceContext,scriptConfig.get("String_Node_Str"));
    }
 else {
      logger.warn("String_Node_Str",configName,scriptConfig);
    }
  }
 else {
    logger.debug("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Register a service implementation if this component is active If a service already exists at the resource context, this replaces it
 * @param scriptConfig the configuration for the script as a service to register the resource context
 */
protected void register(JsonValue scriptConfig,String configName){
  if (context != null) {
    String resourceContext=scriptConfig.get(CONFIG_RESOURCE_CONTEXT).asString();
    if (resourceContext != null) {
      Script script=Scripts.newInstance((String)context.getProperties().get(Constants.SERVICE_PID),scriptConfig);
      scripts.put(resourceContext,new RegisteredScript(script,scriptConfig));
      logger.info("String_Node_Str",resourceContext,scriptConfig.get("String_Node_Str"));
    }
 else {
      logger.warn("String_Node_Str",configName,scriptConfig);
    }
  }
 else {
    logger.debug("String_Node_Str");
  }
}
Program: 13288
Project: 13288
Buggy source:
protected int evaluateOnRequest(final ServerContext context,final ScriptState state) throws ResourceException {
  if (onRequest != null) {
    ScriptEntry scriptEntry=onRequest.getRight();
    if (!scriptEntry.isActive()) {
      throw new ServiceUnavailableException("String_Node_Str" + onRequest.getRight().getName());
    }
    Script script=scriptEntry.getScript(context);
    script.put("String_Node_Str",getRequestMap(state.request,context));
    script.put("String_Node_Str",context);
    script.put("String_Node_Str",getLazyContext(context));
    try {
      state.state=script.eval();
    }
 catch (    Throwable t) {
      logger.debug("String_Node_Str",onRequest.getRight().getName(),onRequest.getLeft(),t);
      throw Utils.adapt(t);
    }
  }
  return CONTINUE;
}

Fixed version (ground truth):
protected int evaluateOnRequest(final ServerContext context,final ScriptState state) throws ResourceException {
  if (onRequest != null) {
    ScriptEntry scriptEntry=onRequest.getRight();
    if (!scriptEntry.isActive()) {
      throw new ServiceUnavailableException("String_Node_Str" + onRequest.getRight().getName());
    }
    Script script=scriptEntry.getScript(context);
    script.put("String_Node_Str",getRequestMap(state.request,context));
    script.put("String_Node_Str",context);
    script.put("String_Node_Str",getLazyContext(context));
    try {
      state.state=script.eval();
    }
 catch (    Throwable t) {
      logger.debug("String_Node_Str",onRequest.getRight().getName(),onRequest.getLeft(),t);
      ResourceException re=Utils.adapt(t);
      logger.debug("String_Node_Str" + re.getDetail());
      throw re;
    }
  }
  return CONTINUE;
}
Program: 13289
Project: 13289
Buggy source:
/** 
 * Copies the authentication principal header, set by the authentication filter, into the request as an attribute with the key SecurityContextFactory.ATTRIBUTE_AUTHCID and copies the authentication context attribute, set by the authentication filter, into the request as an attributes with the key SecurityContextFactory.ATTRIBUTES_AUTHZID.
 * @param servletRequest {@inheritDoc}
 * @param servletResponse {@inheritDoc}
 * @param filterChain {@inheritDoc}
 * @throws IOException {@inheritDoc}
 * @throws ServletException {@inheritDoc}
 */
@Override public void doFilter(ServletRequest servletRequest,ServletResponse servletResponse,FilterChain filterChain) throws IOException, ServletException {
  if ((!HttpServletRequest.class.isAssignableFrom(servletRequest.getClass()) || !HttpServletResponse.class.isAssignableFrom(servletResponse.getClass()))) {
    throw new ServletException("String_Node_Str");
  }
  HttpServletRequest request=(HttpServletRequest)servletRequest;
  String authcid=request.getHeader(AuthNFilter.ATTRIBUTE_AUTH_PRINCIPAL);
  Map<String,Object> authzid=(Map<String,Object>)request.getAttribute(AuthNFilter.ATTRIBUTE_AUTH_CONTEXT);
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHCID,authcid);
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHZID,authzid);
  filterChain.doFilter(request,servletResponse);
}

Fixed version (ground truth):
/** 
 * Copies the authentication principal header, set by the authentication filter, into the request as an attribute with the key SecurityContextFactory.ATTRIBUTE_AUTHCID and copies the authentication context attribute, set by the authentication filter, into the request as an attributes with the key SecurityContextFactory.ATTRIBUTES_AUTHZID.
 * @param servletRequest {@inheritDoc}
 * @param servletResponse {@inheritDoc}
 * @param filterChain {@inheritDoc}
 * @throws IOException {@inheritDoc}
 * @throws ServletException {@inheritDoc}
 */
@Override public void doFilter(ServletRequest servletRequest,ServletResponse servletResponse,FilterChain filterChain) throws IOException, ServletException {
  if ((!HttpServletRequest.class.isAssignableFrom(servletRequest.getClass()) || !HttpServletResponse.class.isAssignableFrom(servletResponse.getClass()))) {
    throw new ServletException("String_Node_Str");
  }
  HttpServletRequest request=(HttpServletRequest)servletRequest;
  Map<String,Object> authzid=(Map<String,Object>)request.getAttribute(AuthNFilter.ATTRIBUTE_AUTH_CONTEXT);
  String authcid=(String)authzid.get("String_Node_Str");
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHCID,authcid);
  request.setAttribute(SecurityContextFactory.ATTRIBUTE_AUTHZID,authzid);
  filterChain.doFilter(request,servletResponse);
}
Program: 13290
Project: 13290
Buggy source:
public void bundleChanged(BundleEvent event){
  if (event.getBundle().getSymbolicName().equals(bundleName)) {
    if (event.getType() == BundleEvent.STARTED) {
      ResourceServlet.this.bundle=event.getBundle();
      logger.info("String_Node_Str" + bundleName + "String_Node_Str");
    }
 else     if (event.getType() == BundleEvent.STOPPED) {
      ResourceServlet.this.bundle=null;
      logger.info("String_Node_Str" + bundleName + "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void bundleChanged(BundleEvent event){
  Bundle bundle=event.getBundle();
  if (bundle != null && bundle.getSymbolicName() != null && bundle.getSymbolicName().equals(bundleName)) {
    if (event.getType() == BundleEvent.STARTED) {
      ResourceServlet.this.bundle=bundle;
      logger.info("String_Node_Str" + bundleName + "String_Node_Str");
    }
 else     if (event.getType() == BundleEvent.STOPPED) {
      ResourceServlet.this.bundle=null;
      logger.info("String_Node_Str" + bundleName + "String_Node_Str");
    }
  }
}
Program: 13293
Project: 13293
Buggy source:
/** 
 * TODO: Description.
 * @throws SynchronizationException TODO.
 */
void create() throws SynchronizationException {
  _id=UUID.randomUUID().toString();
  JsonValue jv=toJsonValue();
  try {
    CreateRequest r=Requests.newCreateRequest(linkId(null),_id,jv);
    mapping.getService().getRouter().getConnection().create(mapping.getService().getRouter(),r);
  }
 catch (  ResourceException ose) {
    LOGGER.debug("String_Node_Str",ose);
    throw new SynchronizationException(ose);
  }
  this._id=jv.get("String_Node_Str").required().asString();
  this._rev=jv.get("String_Node_Str").asString();
  this.initialized=true;
}

Fixed version (ground truth):
/** 
 * TODO: Description.
 * @throws SynchronizationException TODO.
 */
void create() throws SynchronizationException {
  _id=UUID.randomUUID().toString();
  JsonValue jv=toJsonValue();
  try {
    CreateRequest r=Requests.newCreateRequest(linkId(null),_id,jv);
    Resource resource=mapping.getService().getRouter().getConnection().create(mapping.getService().getRouter(),r);
    this._id=resource.getId();
    this._rev=resource.getRevision();
    this.initialized=true;
  }
 catch (  ResourceException ose) {
    LOGGER.debug("String_Node_Str",ose);
    throw new SynchronizationException(ose);
  }
}
Program: 13294
Project: 13294
Buggy source:
/** 
 * TODO: Description.
 * @param target TODO.
 * @throws SynchronizationException TODO.
 */
private LazyObjectAccessor createTargetObject(JsonValue target) throws SynchronizationException {
  EventEntry measure=Publisher.start(EVENT_CREATE_OBJ,target,null);
  LazyObjectAccessor targetObject=null;
  StringBuilder sb=new StringBuilder();
  sb.append(targetObjectSet);
  if (target.get("String_Node_Str").isString()) {
    sb.append('/').append(target.get("String_Node_Str").asString());
  }
  String id=sb.toString();
  LOGGER.trace("String_Node_Str",id);
  try {
    CreateRequest cr=Requests.newCreateRequest(id,null,target);
    Resource r=service.getRouter().getConnection().create(service.getRouter(),cr);
    targetObject=new LazyObjectAccessor(service,targetObjectSet,r.getId(),target);
    measure.setResult(target);
  }
 catch (  JsonValueException jve) {
    throw new SynchronizationException(jve);
  }
catch (  ResourceException ose) {
    LOGGER.warn("String_Node_Str",ose);
    throw new SynchronizationException(ose);
  }
 finally {
    measure.end();
  }
  return targetObject;
}

Fixed version (ground truth):
/** 
 * TODO: Description.
 * @param target TODO.
 * @throws SynchronizationException TODO.
 */
private LazyObjectAccessor createTargetObject(JsonValue target) throws SynchronizationException {
  EventEntry measure=Publisher.start(EVENT_CREATE_OBJ,target,null);
  LazyObjectAccessor targetObject=null;
  LOGGER.trace("String_Node_Str",targetObjectSet,target.get("String_Node_Str").asString());
  try {
    CreateRequest cr=Requests.newCreateRequest(targetObjectSet,target.get("String_Node_Str").asString(),target);
    Resource r=service.getRouter().getConnection().create(service.getRouter(),cr);
    targetObject=new LazyObjectAccessor(service,targetObjectSet,r.getId(),target);
    measure.setResult(target);
  }
 catch (  JsonValueException jve) {
    throw new SynchronizationException(jve);
  }
catch (  ResourceException ose) {
    LOGGER.warn("String_Node_Str",ose);
    throw new SynchronizationException(ose);
  }
 finally {
    measure.end();
  }
  return targetObject;
}
Program: 13297
Project: 13297
Buggy source:
private List<String> getOrCreateRepoList(String repoId,String listId) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    List<String> list=null;
    Map<String,Object> map;
    String revision=null;
    try {
      map=accessor.getConnection().read(accessor,Requests.newReadRequest(repoId)).getContent().asMap();
    }
 catch (    NotFoundException e) {
      logger.debug("String_Node_Str",listId);
      map=null;
    }
    if (map == null) {
      map=new HashMap<String,Object>();
      list=new ArrayList<String>();
      map.put(listId,list);
      map=accessor.getConnection().create(accessor,Requests.newCreateRequest(repoId.substring(0,repoId.lastIndexOf("String_Node_Str")),repoId.substring(repoId.lastIndexOf("String_Node_Str") + 1),new JsonValue(map))).getContent().asMap();
    }
 else {
      list=(List<String>)map.get(listId);
      if (list == null) {
        list=new ArrayList<String>();
        map.put(listId,list);
        revision=(String)map.get("String_Node_Str");
        UpdateRequest r=Requests.newUpdateRequest(repoId,new JsonValue(map));
        r.setRevision(revision);
        accessor.getConnection().update(accessor,r);
      }
    }
    return list;
  }
}

Fixed version (ground truth):
private List<String> getOrCreateRepoList(String repoId,String listId) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    List<String> list=null;
    Map<String,Object> map;
    String revision=null;
    try {
      map=accessor.getConnection().read(accessor,Requests.newReadRequest(repoId)).getContent().asMap();
    }
 catch (    NotFoundException e) {
      logger.debug("String_Node_Str",listId);
      map=null;
    }
    if (map == null) {
      map=new HashMap<String,Object>();
      list=new ArrayList<String>();
      map.put(listId,list);
      map=accessor.getConnection().create(accessor,getCreateRequest(repoId,map)).getContent().asMap();
    }
 else {
      list=(List<String>)map.get(listId);
      if (list == null) {
        list=new ArrayList<String>();
        map.put(listId,list);
        revision=(String)map.get("String_Node_Str");
        UpdateRequest r=Requests.newUpdateRequest(repoId,new JsonValue(map));
        r.setRevision(revision);
        accessor.getConnection().update(accessor,r);
      }
    }
    return list;
  }
}
Program: 13301
Project: 13301
Buggy source:
private Map<String,Object> getOrCreateRepo(String repoId) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    Map<String,Object> map;
    map=readFromRepo(repoId).asMap();
    if (map == null) {
      map=new HashMap<String,Object>();
      logger.debug("String_Node_Str",repoId);
      map=accessor.getConnection().create(accessor,Requests.newCreateRequest(repoId.substring(0,repoId.lastIndexOf("String_Node_Str")),repoId.substring(repoId.lastIndexOf("String_Node_Str") + 1),new JsonValue(map))).getContent().asMap();
    }
    return map;
  }
}

Fixed version (ground truth):
private Map<String,Object> getOrCreateRepo(String repoId) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    Map<String,Object> map;
    map=readFromRepo(repoId).asMap();
    if (map == null) {
      map=new HashMap<String,Object>();
      logger.debug("String_Node_Str",repoId);
      map=accessor.getConnection().create(accessor,getCreateRequest(repoId,map)).getContent().asMap();
    }
    return map;
  }
}
Program: 13302
Project: 13302
Buggy source:
/** 
 * Gets a Job group from the repo and wraps it in a JobGroupWapper(). Creates the group if it doesn't already exist
 * @param groupName name of group
 * @return a job group wrapped in a JobGroupWrapper
 * @throws ObjectSetException
 */
private JobGroupWrapper getOrCreateJobGroupWrapper(String groupName) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    Map<String,Object> map;
    map=readFromRepo(getJobGroupsRepoId(groupName)).asMap();
    JobGroupWrapper jgw=null;
    if (map == null) {
      jgw=new JobGroupWrapper(groupName);
      JsonValue newValue=accessor.getConnection().create(accessor,Requests.newCreateRequest(getJobGroupsRepoId(groupName),jgw.getValue())).getContent();
      jgw=new JobGroupWrapper(newValue);
      addJobGroupName(groupName);
    }
 else {
      jgw=new JobGroupWrapper(map);
    }
    return jgw;
  }
}

Fixed version (ground truth):
/** 
 * Gets a Job group from the repo and wraps it in a JobGroupWapper(). Creates the group if it doesn't already exist
 * @param groupName name of group
 * @return a job group wrapped in a JobGroupWrapper
 * @throws ObjectSetException
 */
private JobGroupWrapper getOrCreateJobGroupWrapper(String groupName) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    Map<String,Object> map;
    map=readFromRepo(getJobGroupsRepoId(groupName)).asMap();
    JobGroupWrapper jgw=null;
    if (map == null) {
      jgw=new JobGroupWrapper(groupName);
      JsonValue newValue=accessor.getConnection().create(accessor,getCreateRequest(getJobGroupsRepoId(groupName),jgw.getValue().asMap())).getContent();
      jgw=new JobGroupWrapper(newValue);
      addJobGroupName(groupName);
    }
 else {
      jgw=new JobGroupWrapper(map);
    }
    return jgw;
  }
}
Program: 13303
Project: 13303
Buggy source:
/** 
 * Gets a Trigger group from the repo and wraps it in a TriggerGroupWapper(). Creates the group if it doesn't already exist
 * @param groupName name of group
 * @return a trigger group wrapped in a TriggerGroupWrapper
 * @throws ObjectSetException
 */
private TriggerGroupWrapper getOrCreateTriggerGroupWrapper(String groupName) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    Map<String,Object> map;
    map=readFromRepo(getTriggerGroupsRepoId(groupName)).asMap();
    TriggerGroupWrapper tgw=null;
    if (map == null) {
      tgw=new TriggerGroupWrapper(groupName);
      JsonValue newValue=accessor.getConnection().create(accessor,Requests.newCreateRequest(getTriggerGroupsRepoId(groupName),tgw.getValue())).getContent();
      tgw=new TriggerGroupWrapper(newValue);
      addTriggerGroupName(groupName);
    }
 else {
      tgw=new TriggerGroupWrapper(map);
    }
    return tgw;
  }
}

Fixed version (ground truth):
/** 
 * Gets a Trigger group from the repo and wraps it in a TriggerGroupWapper(). Creates the group if it doesn't already exist
 * @param groupName name of group
 * @return a trigger group wrapped in a TriggerGroupWrapper
 * @throws ObjectSetException
 */
private TriggerGroupWrapper getOrCreateTriggerGroupWrapper(String groupName) throws JobPersistenceException, ResourceException {
synchronized (lock) {
    if (!setAccessor()) {
      throw new JobPersistenceException("String_Node_Str");
    }
    Map<String,Object> map;
    map=readFromRepo(getTriggerGroupsRepoId(groupName)).asMap();
    TriggerGroupWrapper tgw=null;
    if (map == null) {
      tgw=new TriggerGroupWrapper(groupName);
      JsonValue newValue=accessor.getConnection().create(accessor,getCreateRequest(getTriggerGroupsRepoId(groupName),tgw.getValue().asMap())).getContent();
      tgw=new TriggerGroupWrapper(newValue);
      addTriggerGroupName(groupName);
    }
 else {
      tgw=new TriggerGroupWrapper(map);
    }
    return tgw;
  }
}
Program: 13305
Project: 13305
Buggy source:
public static Map<String,Object> getReconResults(List<Map<String,Object>> entryList,String reconId,boolean formatted){
  Map<String,Object> results=new HashMap<String,Object>();
  List<Map<String,Object>> resultEntries=new ArrayList<Map<String,Object>>();
  if (formatted) {
    if (reconId != null) {
      for (      Map<String,Object> entry : entryList) {
        if (reconId.equals(entry.get("String_Node_Str"))) {
          if ("String_Node_Str".equals(entry.get("String_Node_Str"))) {
            results.put("String_Node_Str",AuditServiceImpl.formatReconEntry(entry));
          }
 else           if ("String_Node_Str".equals(entry.get("String_Node_Str"))) {
            results.put("String_Node_Str",AuditServiceImpl.formatReconEntry(entry));
          }
 else {
            resultEntries.add(AuditServiceImpl.formatReconEntry(entry));
          }
        }
      }
    }
 else {
      for (      Map<String,Object> entry : entryList) {
        resultEntries.add(AuditServiceImpl.formatReconEntry(entry));
      }
    }
    if (resultEntries.size() > 0) {
      results.put("String_Node_Str",resultEntries);
    }
  }
 else {
    results.put("String_Node_Str",entryList);
  }
  return results;
}

Fixed version (ground truth):
public static Map<String,Object> getReconResults(List<Map<String,Object>> entryList,boolean formatted){
  Map<String,Object> results=new HashMap<String,Object>();
  if (formatted) {
    List<Map<String,Object>> resultEntries=new ArrayList<Map<String,Object>>();
    for (    Map<String,Object> entry : entryList) {
      resultEntries.add(AuditServiceImpl.formatReconEntry(entry));
    }
    if (resultEntries.size() > 0) {
      results.put("String_Node_Str",resultEntries);
    }
  }
 else {
    results.put("String_Node_Str",entryList);
  }
  return results;
}
Program: 13307
Project: 13307
Buggy source:
private Map<String,Object> getReconQueryResults(List<Map<String,Object>> list,String reconId,String param,String paramValue,boolean formatted){
  List<Map<String,Object>> rawEntryList=new ArrayList<Map<String,Object>>();
  for (  Map<String,Object> entry : list) {
    if ((reconId == null || (entry.get("String_Node_Str").equals(reconId))) && (param == null || paramValue.equals(entry.get(param)))) {
      rawEntryList.add(entry);
    }
  }
  return AuditServiceImpl.getReconResults(rawEntryList,reconId,formatted);
}

Fixed version (ground truth):
private Map<String,Object> getReconQueryResults(List<Map<String,Object>> list,String reconId,String param,String paramValue,boolean formatted){
  List<Map<String,Object>> rawEntryList=new ArrayList<Map<String,Object>>();
  for (  Map<String,Object> entry : list) {
    if ((reconId == null || (entry.get("String_Node_Str").equals(reconId))) && (param == null || paramValue.equals(entry.get(param)))) {
      rawEntryList.add(entry);
    }
  }
  return AuditServiceImpl.getReconResults(rawEntryList,formatted);
}
Program: 13311
Project: 13311
Buggy source:
@Deactivate void deactivate(ComponentContext compContext){
  logger.debug("String_Node_Str",compContext);
  clusterManagerThread.shutdown();
synchronized (repoLock) {
    try {
      InstanceState state=getInstanceState(instanceId);
      state.updateShutdown();
      state.setState(InstanceState.STATE_DOWN);
      updateInstanceState(instanceId,state);
    }
 catch (    JsonResourceException e) {
      logger.warn("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
@Deactivate void deactivate(ComponentContext compContext){
  logger.debug("String_Node_Str",compContext);
  if (clusterConfig.isEnabled()) {
    clusterManagerThread.shutdown();
synchronized (repoLock) {
      try {
        InstanceState state=getInstanceState(instanceId);
        state.updateShutdown();
        state.setState(InstanceState.STATE_DOWN);
        updateInstanceState(instanceId,state);
      }
 catch (      JsonResourceException e) {
        logger.warn("String_Node_Str",e);
      }
    }
  }
}
Program: 13312
Project: 13312
Buggy source:
@Override public void addedService(ServiceReference reference,Object service){
  ClusterManagementService clusterService=(ClusterManagementService)service;
  if (clusterService != null) {
    clusterService.register(LISTENER_ID,this);
    cluster=clusterService;
  }
}

Fixed version (ground truth):
@Override public void addedService(ServiceReference reference,Object service){
  ClusterManagementService clusterService=(ClusterManagementService)service;
  if (clusterService != null) {
    clusterService.register(LISTENER_ID,this);
    clusterEnabled=clusterService.isEnabled();
    cluster=clusterService;
  }
}
Program: 13315
Project: 13315
Buggy source:
/** 
 * Gets a Jetty configuration property. If obfuscated is true, it will return a value obfuscated in Jetty format.
 * @param propName  name of the property.
 * @param obfuscated if value should be obfuscated.
 * @return the property value.
 */
public static String getProperty(String propName,boolean obfuscated){
  String prop=IdentityServer.getInstance().getProperty(propName);
  if (obfuscated && prop != null) {
    try {
      String clear=new String(Main.unfold(prop));
      prop=Main.obfuscate(prop);
    }
 catch (    GeneralSecurityException ex) {
      throw new RuntimeException("String_Node_Str" + propName + "String_Node_Str",ex);
    }
  }
  return prop;
}

Fixed version (ground truth):
/** 
 * Gets a Jetty configuration property. If obfuscated is true, it will return a value obfuscated in Jetty format.
 * @param propName  name of the property.
 * @param obfuscated if value should be obfuscated.
 * @return the property value.
 */
public static String getProperty(String propName,boolean obfuscated){
  String prop=IdentityServer.getInstance().getProperty(propName);
  if (prop == null) {
    return null;
  }
  try {
    String clear=new String(Main.unfold(prop));
    if (obfuscated) {
      prop=Main.obfuscate(clear);
    }
 else {
      prop=clear;
    }
  }
 catch (  GeneralSecurityException ex) {
    throw new RuntimeException("String_Node_Str" + propName + "String_Node_Str",ex);
  }
  return prop;
}
Program: 13317
Project: 13317
Buggy source:
@Override public Map<String,Object> read(String id) throws ObjectSetException {
  Map<String,Object> resultMap=null;
  try {
    Scheduler scheduler=null;
    JobDetail job=null;
    boolean persisted=false;
    if (jobExists(id,true)) {
      persisted=true;
      scheduler=persistentScheduler;
    }
 else     if (jobExists(id,false)) {
      scheduler=inMemoryScheduler;
    }
 else {
      throw new ObjectSetException(ObjectSetException.NOT_FOUND,"String_Node_Str");
    }
    job=scheduler.getJobDetail(id,GROUP_NAME);
    CronTrigger trigger=(CronTrigger)scheduler.getTrigger("String_Node_Str" + id,GROUP_NAME);
    JobDataMap dataMap=job.getJobDataMap();
    if (trigger == null) {
      ScheduleConfig config=new ScheduleConfig(parseStringified((String)dataMap.get(CONFIG)));
      trigger=createTrigger(config,job.getName());
    }
    ScheduleConfig config=new ScheduleConfig(trigger,dataMap,persisted,job.isStateful());
    resultMap=(Map<String,Object>)config.getConfig().getObject();
    resultMap.put("String_Node_Str",id);
  }
 catch (  SchedulerException e) {
    e.printStackTrace();
    throw new ObjectSetException(ObjectSetException.INTERNAL_ERROR,e);
  }
catch (  Exception e) {
    e.printStackTrace();
  }
  return resultMap;
}

Fixed version (ground truth):
@Override public Map<String,Object> read(String id) throws ObjectSetException {
  Map<String,Object> resultMap=null;
  try {
    Scheduler scheduler=null;
    JobDetail job=null;
    if (jobExists(id,true)) {
      scheduler=persistentScheduler;
    }
 else     if (jobExists(id,false)) {
      scheduler=inMemoryScheduler;
    }
 else {
      throw new ObjectSetException(ObjectSetException.NOT_FOUND,"String_Node_Str");
    }
    job=scheduler.getJobDetail(id,GROUP_NAME);
    JobDataMap dataMap=job.getJobDataMap();
    ScheduleConfig config=new ScheduleConfig(parseStringified((String)dataMap.get(CONFIG)));
    resultMap=(Map<String,Object>)config.getConfig().getObject();
    resultMap.put("String_Node_Str",id);
  }
 catch (  SchedulerException e) {
    e.printStackTrace();
    throw new ObjectSetException(ObjectSetException.INTERNAL_ERROR,e);
  }
catch (  Exception e) {
    e.printStackTrace();
  }
  return resultMap;
}
Program: 13318
Project: 13318
Buggy source:
@Override public void patch(String id,String rev,Patch patch) throws ObjectSetException {
  boolean forceUpdate=(rev == null);
  boolean retry=forceUpdate;
  String _rev=rev;
  do {
    LOGGER.debug("String_Node_Str",name,id);
    idRequired(id);
    noSubObjects(id);
    JsonValue oldValue=new JsonValue(service.getRouter().read(repoId(id)));
    JsonValue decrypted=decrypt(oldValue);
    if (rev == null) {
      _rev=decrypted.get("String_Node_Str").asString();
    }
    JsonValue newValue=decrypted.copy();
    patch.apply(newValue.asMap());
    JsonValue params=new JsonValue(new HashMap<String,Object>());
    params.add("String_Node_Str","String_Node_Str");
    params.add("String_Node_Str",newValue);
    if (enforcePolicies) {
      JsonValue result=new JsonValue(service.getRouter().action("String_Node_Str" + managedId(id),params.asMap()));
      if (!result.isNull() && !result.get("String_Node_Str").asBoolean()) {
        LOGGER.debug("String_Node_Str",result);
        throw new ForbiddenException("String_Node_Str",result.asMap());
      }
    }
    try {
      update(id,_rev,decrypted,newValue);
      retry=false;
      logActivity(id,"String_Node_Str" + patch,oldValue,newValue);
    }
 catch (    ConflictException e) {
      if (forceUpdate) {
        LOGGER.debug("String_Node_Str");
      }
 else {
        throw e;
      }
    }
  }
 while (retry);
}

Fixed version (ground truth):
@Override public void patch(String id,String rev,Patch patch) throws ObjectSetException {
  boolean forceUpdate=(rev == null);
  boolean retry=forceUpdate;
  String _rev=rev;
  do {
    LOGGER.debug("String_Node_Str",name,id);
    idRequired(id);
    noSubObjects(id);
    JsonValue oldValue=new JsonValue(service.getRouter().read(repoId(id)));
    JsonValue decrypted=decrypt(oldValue);
    if (rev == null) {
      _rev=decrypted.get("String_Node_Str").asString();
    }
    JsonValue newValue=decrypted.copy();
    patch.apply(newValue.asMap());
    JsonValue params=new JsonValue(new HashMap<String,Object>());
    params.add("String_Node_Str","String_Node_Str");
    params.add("String_Node_Str",newValue);
    if (isPublicContext()) {
      ObjectSetContext.get().add("String_Node_Str",true);
    }
    if (enforcePolicies) {
      JsonValue result=new JsonValue(service.getRouter().action("String_Node_Str" + managedId(id),params.asMap()));
      if (!result.isNull() && !result.get("String_Node_Str").asBoolean()) {
        LOGGER.debug("String_Node_Str",result);
        throw new ForbiddenException("String_Node_Str",result.asMap());
      }
    }
    try {
      update(id,_rev,decrypted,newValue);
      retry=false;
      logActivity(id,"String_Node_Str" + patch,oldValue,newValue);
    }
 catch (    ConflictException e) {
      if (forceUpdate) {
        LOGGER.debug("String_Node_Str");
      }
 else {
        throw e;
      }
    }
  }
 while (retry);
}