nus-yam/ex-repair huggingface dataset:
Program: 15018
Project: 15018
Buggy source:
@Override public void afterTransactionCompletion(final Transaction tx){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations,tx.toString()));
  super.afterTransactionCompletion(tx);
}

Fixed version (ground truth):
@Override public void afterTransactionCompletion(final Transaction tx){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations,tx.toString()));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  super.afterTransactionCompletion(tx);
}
Program: 15019
Project: 15019
Buggy source:
@Override public boolean onFlushDirty(final Object entity,final Serializable id,final Object[] currentState,final Object[] previousState,final String[] propertyNames,final Type[] types){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,entity.getClass().getSimpleName(),id,toStringNullably(entity)));
  return super.onFlushDirty(entity,id,currentState,previousState,propertyNames,types);
}

Fixed version (ground truth):
@Override public boolean onFlushDirty(final Object entity,final Serializable id,final Object[] currentState,final Object[] previousState,final String[] propertyNames,final Type[] types){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,entity.getClass().getSimpleName(),id,toStringNullably(entity)));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  return super.onFlushDirty(entity,id,currentState,previousState,propertyNames,types);
}
Program: 15020
Project: 15020
Buggy source:
@Override public void onDelete(final Object entity,final Serializable id,final Object[] state,final String[] propertyNames,final Type[] types){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,entity.getClass().getSimpleName(),id,toStringNullably(entity)));
  super.onDelete(entity,id,state,propertyNames,types);
}

Fixed version (ground truth):
@Override public void onDelete(final Object entity,final Serializable id,final Object[] state,final String[] propertyNames,final Type[] types){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,entity.getClass().getSimpleName(),id,toStringNullably(entity)));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  super.onDelete(entity,id,state,propertyNames,types);
}
Program: 15021
Project: 15021
Buggy source:
@Override public void preFlush(final Iterator entities){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations,Iterators.transform(entities,Classes.simpleNameFunction())));
  super.preFlush(entities);
}

Fixed version (ground truth):
@Override public void preFlush(final Iterator entities){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations,Iterators.transform(entities,Classes.simpleNameFunction())));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  super.preFlush(entities);
}
Program: 15022
Project: 15022
Buggy source:
@Override public void afterTransactionBegin(final Transaction tx){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations=0,tx.toString()));
  super.afterTransactionBegin(tx);
}

Fixed version (ground truth):
@Override public void afterTransactionBegin(final Transaction tx){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations=0,tx.toString()));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  super.afterTransactionBegin(tx);
}
Program: 15023
Project: 15023
Buggy source:
/** 
 * NOTE: <b>MUST</b> remember that the   {@code entity} is {@code null} at this time!
 */
@Override public boolean onLoad(final Object entity,final Serializable id,final Object[] state,final String[] propertyNames,final Type[] types){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,entity.getClass().getSimpleName(),id,toStringNullably(entity)));
  return super.onLoad(entity,id,state,propertyNames,types);
}

Fixed version (ground truth):
/** 
 * NOTE: <b>MUST</b> remember that the   {@code entity} is {@code null} at this time!
 */
@Override public boolean onLoad(final Object entity,final Serializable id,final Object[] state,final String[] propertyNames,final Type[] types){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,entity.getClass().getSimpleName(),id,toStringNullably(entity)));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  return super.onLoad(entity,id,state,propertyNames,types);
}
Program: 15024
Project: 15024
Buggy source:
@Override public void postFlush(final Iterator entities){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations,Iterators.transform(entities,Classes.simpleNameFunction())));
  super.postFlush(entities);
}

Fixed version (ground truth):
@Override public void postFlush(final Iterator entities){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),this.operations,Iterators.transform(entities,Classes.simpleNameFunction())));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  super.postFlush(entities);
}
Program: 15025
Project: 15025
Buggy source:
@Override public String getEntityName(Object object){
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,object.getClass().getSimpleName(),toStringNullably(object)));
  return super.getEntityName(object);
}

Fixed version (ground truth):
@Override public String getEntityName(Object object){
  try {
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,object.getClass().getSimpleName(),toStringNullably(object)));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  return super.getEntityName(object);
}
Program: 15026
Project: 15026
Buggy source:
@Override public void onCollectionUpdate(final Object collection,final Serializable key) throws CallbackException {
  Iterable<Object> iter=(collection instanceof Iterable ? (Iterable)collection : Lists.newArrayList(collection));
  String summary=Iterables.toString(Iterables.transform(iter,Classes.canonicalNameFunction()));
  LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,key,summary));
  super.onCollectionUpdate(collection,key);
}

Fixed version (ground truth):
@Override public void onCollectionUpdate(final Object collection,final Serializable key) throws CallbackException {
  try {
    Iterable<Object> iter=(collection instanceof Iterable ? (Iterable)collection : Lists.newArrayList(collection));
    String summary=Iterables.toString(Iterables.transform(iter,Classes.canonicalNameFunction()));
    LOG.debug(String.format("String_Node_Str",Threads.currentStackFrame().getMethodName(),++this.operations,key,summary));
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
  super.onCollectionUpdate(collection,key);
}
Program: 15028
Project: 15028
Buggy source:
@Override public String setValue(String s){
  try {
    Object o=super.getTypeParser().apply(s);
    this.fireChange(s);
    this.field.set(null,o);
    LOG.info("String_Node_Str" + super.getQualifiedName() + "String_Node_Str"+ s);
  }
 catch (  Exception t) {
    LOG.warn("String_Node_Str" + super.getQualifiedName() + "String_Node_Str"+ t.getMessage());
    LOG.debug(t,t);
  }
  return this.getValue();
}

Fixed version (ground truth):
@Override public String setValue(String s){
  if (Modifier.isFinal(this.field.getModifiers())) {
    return "String_Node_Str" + super.getQualifiedName();
  }
 else {
    try {
      Object o=super.getTypeParser().apply(s);
      this.fireChange(s);
      this.field.set(null,o);
      LOG.info("String_Node_Str" + super.getQualifiedName() + "String_Node_Str"+ s);
    }
 catch (    Exception t) {
      LOG.warn("String_Node_Str" + super.getQualifiedName() + "String_Node_Str"+ t.getMessage());
      LOG.debug(t,t);
    }
    return this.getValue();
  }
}
Program: 15029
Project: 15029
Buggy source:
public DescribeSecurityGroupsResponseType describe(final DescribeSecurityGroupsType request) throws EucalyptusCloudException {
  final DescribeSecurityGroupsResponseType reply=request.getReply();
  final Context ctx=Contexts.lookup();
  NetworkGroups.createDefault(ctx.getUserFullName());
  final List<String> groupNames=request.getSecurityGroupSet();
  final Predicate<NetworkGroup> argListFilter=new Predicate<NetworkGroup>(){
    @Override public boolean apply(    final NetworkGroup arg0){
      return groupNames.isEmpty() || groupNames.contains(arg0.getName());
    }
  }
;
  Predicate<NetworkGroup> netFilter=Predicates.and(argListFilter,userAuthFilter());
  OwnerFullName ownerFn=AccountFullName.getInstance(ctx.getAccount());
  if (Contexts.lookup().hasAdministrativePrivileges()) {
    ownerFn=null;
    netFilter=argListFilter;
  }
  final EntityTransaction db=Entities.get(NetworkGroup.class);
  try {
    final Iterable<NetworkGroup> matches=Iterables.filter(Entities.query(NetworkGroup.named(ownerFn,null)),netFilter);
    final Iterable<SecurityGroupItemType> transformed=Iterables.transform(matches,TypeMappers.lookup(NetworkGroup.class,SecurityGroupItemType.class));
    Iterables.addAll(reply.getSecurityGroupInfo(),transformed);
  }
 catch (  final Exception e) {
    LOG.debug(e,e);
  }
  return reply;
}

Fixed version (ground truth):
public DescribeSecurityGroupsResponseType describe(final DescribeSecurityGroupsType request) throws EucalyptusCloudException {
  final DescribeSecurityGroupsResponseType reply=request.getReply();
  final Context ctx=Contexts.lookup();
  NetworkGroups.createDefault(ctx.getUserFullName());
  final List<String> groupNames=request.getSecurityGroupSet();
  final Predicate<NetworkGroup> argListFilter=new Predicate<NetworkGroup>(){
    @Override public boolean apply(    final NetworkGroup arg0){
      return groupNames.isEmpty() || groupNames.contains(arg0.getName());
    }
  }
;
  Predicate<NetworkGroup> netFilter=Predicates.and(argListFilter,userAuthFilter());
  OwnerFullName ownerFn=AccountFullName.getInstance(ctx.getAccount());
  if (Contexts.lookup().hasAdministrativePrivileges()) {
    ownerFn=null;
    netFilter=argListFilter;
  }
  final EntityTransaction db=Entities.get(NetworkGroup.class);
  try {
    final Iterable<NetworkGroup> matches=Iterables.filter(Entities.query(NetworkGroup.named(ownerFn,null)),netFilter);
    final Iterable<SecurityGroupItemType> transformed=Iterables.transform(matches,TypeMappers.lookup(NetworkGroup.class,SecurityGroupItemType.class));
    Iterables.addAll(reply.getSecurityGroupInfo(),transformed);
  }
  finally {
    db.rollback();
  }
  return reply;
}
Program: 15030
Project: 15030
Buggy source:
private static void processTransition(final ServiceConfiguration parent,final Completion transitionCallback,final TransitionActions transitionAction){
  ServiceTransitionCallback trans=null;
  try {
    if (parent.isVmLocal() || (parent.isHostLocal() && BootstrapArgs.isCloudController())) {
      try {
        trans=ServiceLocalTransitionCallbacks.valueOf(transitionAction.name());
      }
 catch (      Exception ex) {
        LOG.error(ex,ex);
        throw ex;
      }
    }
 else     if (!BootstrapArgs.isCloudController()) {
      try {
        trans=ServiceRemoteTransitionNotification.valueOf(transitionAction.name());
      }
 catch (      Exception ex) {
        LOG.error(ex,ex);
        throw ex;
      }
    }
 else     if (BootstrapArgs.isCloudController()) {
      try {
        trans=CloudRemoteTransitionCallbacks.valueOf(transitionAction.name());
      }
 catch (      Exception ex) {
        LOG.error(ex,ex);
        throw ex;
      }
    }
 else {
      LOG.debug("String_Node_Str" + parent);
    }
    if (trans != null) {
      Logs.extreme().debug("String_Node_Str" + trans.getClass() + "String_Node_Str"+ transitionAction.name()+ "String_Node_Str"+ parent);
      trans.fire(parent);
    }
    transitionCallback.fire();
  }
 catch (  Exception ex) {
    if (ServiceExceptions.filterExceptions(parent,ex)) {
      transitionCallback.fireException(ex);
      throw new UndeclaredThrowableException(ex);
    }
 else {
      transitionCallback.fire();
    }
  }
}

Fixed version (ground truth):
private static void processTransition(final ServiceConfiguration parent,final Completion transitionCallback,final TransitionActions transitionAction){
  ServiceTransitionCallback trans=null;
  try {
    if (parent.isVmLocal() || (parent.isHostLocal() && BootstrapArgs.isCloudController())) {
      try {
        trans=ServiceLocalTransitionCallbacks.valueOf(transitionAction.name());
      }
 catch (      Exception ex) {
        LOG.error(ex,ex);
        throw ex;
      }
    }
 else     if (!BootstrapArgs.isCloudController()) {
      try {
        trans=ServiceRemoteTransitionNotification.valueOf(transitionAction.name());
      }
 catch (      Exception ex) {
        LOG.error(ex,ex);
        throw ex;
      }
    }
 else     if (BootstrapArgs.isCloudController()) {
      try {
        trans=CloudRemoteTransitionCallbacks.valueOf(transitionAction.name());
      }
 catch (      Exception ex) {
        LOG.error(ex,ex);
        throw ex;
      }
    }
 else {
      LOG.debug("String_Node_Str" + parent);
    }
    if (trans != null) {
      Logs.exhaust().debug("String_Node_Str" + trans.getClass() + "String_Node_Str"+ transitionAction.name()+ "String_Node_Str"+ parent);
      trans.fire(parent);
    }
    transitionCallback.fire();
  }
 catch (  Exception ex) {
    if (ServiceExceptions.filterExceptions(parent,ex)) {
      transitionCallback.fireException(ex);
      throw new UndeclaredThrowableException(ex);
    }
 else {
      transitionCallback.fire();
    }
  }
}
Program: 15031
Project: 15031
Buggy source:
/** 
 * @see com.eucalyptus.util.fsm.State#commit()
 */
private void commit(){
  LOG.debug("String_Node_Str" + this.currentTransition.get());
  if (!this.state.isMarked()) {
    IllegalStateException ex=Exceptions.trace(new IllegalStateException("String_Node_Str" + this.toString()));
    LOG.error(ex,ex);
    throw ex;
  }
 else {
    ActiveTransition tr=this.currentTransition.getAndSet(null);
    this.state.set(tr.getTransitionRule().getToState(),tr.getTransitionRule().getToStateMark());
    if (!tr.getTransitionRule().getFromState().equals(tr.getTransitionRule().getToState())) {
      this.state.set(tr.getTransitionRule().getToState(),false);
      this.fireInListeners(tr.getTransitionRule().getToState());
    }
 else {
      this.state.set(tr.getTransitionRule().getToState(),false);
    }
    EventRecord.caller(this.getClass(),EventType.TRANSITION_FUTURE,"String_Node_Str" + this.parent.toString() + "String_Node_Str"+ this.parent.getClass().getCanonicalName()+ "String_Node_Str").trace();
    tr.getTransitionFuture().set(this.parent);
  }
}

Fixed version (ground truth):
/** 
 * @see com.eucalyptus.util.fsm.State#commit()
 */
private void commit(){
  Logs.exhaust().trace("String_Node_Str" + this.currentTransition.get());
  if (!this.state.isMarked()) {
    IllegalStateException ex=Exceptions.trace(new IllegalStateException("String_Node_Str" + this.toString()));
    LOG.error(ex,ex);
    throw ex;
  }
 else {
    ActiveTransition tr=this.currentTransition.getAndSet(null);
    this.state.set(tr.getTransitionRule().getToState(),tr.getTransitionRule().getToStateMark());
    if (!tr.getTransitionRule().getFromState().equals(tr.getTransitionRule().getToState())) {
      this.state.set(tr.getTransitionRule().getToState(),false);
      this.fireInListeners(tr.getTransitionRule().getToState());
    }
 else {
      this.state.set(tr.getTransitionRule().getToState(),false);
    }
    EventRecord.caller(this.getClass(),EventType.TRANSITION_FUTURE,"String_Node_Str" + this.parent.toString() + "String_Node_Str"+ this.parent.getClass().getCanonicalName()+ "String_Node_Str").trace();
    tr.getTransitionFuture().set(this.parent);
  }
}
Program: 15032
Project: 15032
Buggy source:
private void error(Throwable t){
  LOG.debug("String_Node_Str" + this.toString());
  if (!this.state.isMarked()) {
    IllegalStateException ex=Exceptions.debug(new IllegalStateException("String_Node_Str" + this.toString(),t));
    Logs.exhaust().error(ex,ex);
    throw ex;
  }
 else {
    ActiveTransition tr=this.currentTransition.getAndSet(null);
    this.state.set(tr.getTransitionRule().getErrorState(),tr.getTransitionRule().getErrorStateMark());
    if (!tr.getTransitionRule().getFromState().equals(tr.getTransitionRule().getErrorState())) {
      this.state.set(tr.getTransitionRule().getErrorState(),false);
      this.fireInListeners(tr.getTransitionRule().getErrorState());
    }
 else {
      this.state.set(tr.getTransitionRule().getErrorState(),false);
    }
    EventRecord.caller(this.getClass(),EventType.TRANSITION_FUTURE,"String_Node_Str" + t.getClass().getCanonicalName() + "String_Node_Str"+ t.getMessage()).trace();
    tr.getTransitionFuture().setException(t);
  }
}

Fixed version (ground truth):
private void error(Throwable t){
  Logs.exhaust().error("String_Node_Str" + this.toString());
  if (!this.state.isMarked()) {
    IllegalStateException ex=Exceptions.debug(new IllegalStateException("String_Node_Str" + this.toString(),t));
    Logs.exhaust().error(ex,ex);
    throw ex;
  }
 else {
    ActiveTransition tr=this.currentTransition.getAndSet(null);
    this.state.set(tr.getTransitionRule().getErrorState(),tr.getTransitionRule().getErrorStateMark());
    if (!tr.getTransitionRule().getFromState().equals(tr.getTransitionRule().getErrorState())) {
      this.state.set(tr.getTransitionRule().getErrorState(),false);
      this.fireInListeners(tr.getTransitionRule().getErrorState());
    }
 else {
      this.state.set(tr.getTransitionRule().getErrorState(),false);
    }
    EventRecord.caller(this.getClass(),EventType.TRANSITION_FUTURE,"String_Node_Str" + t.getClass().getCanonicalName() + "String_Node_Str"+ t.getMessage()).trace();
    tr.getTransitionFuture().setException(t);
  }
}
Program: 15033
Project: 15033
Buggy source:
@SuppressWarnings("String_Node_Str") public static void response(BaseMessage responseMessage){
  EventRecord.here(ServiceContext.class,EventType.MSG_REPLY,responseMessage.getCorrelationId(),responseMessage.getClass().getSimpleName()).debug();
  if (responseMessage instanceof ExceptionResponseType) {
    Logs.extreme().error(responseMessage);
  }
  String corrId=responseMessage.getCorrelationId();
  try {
    Context context=Contexts.lookup(corrId);
    Channel channel=context.getChannel();
    Channels.write(channel,responseMessage);
    Contexts.clear(context);
  }
 catch (  NoSuchContextException e) {
    LOG.warn("String_Node_Str",e);
    LOG.debug(responseMessage);
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void response(BaseMessage responseMessage){
  EventRecord.here(ServiceContext.class,EventType.MSG_REPLY,responseMessage.getCorrelationId(),responseMessage.getClass().getSimpleName()).debug();
  if (responseMessage instanceof ExceptionResponseType) {
    Logs.exhaust().trace(responseMessage);
  }
  String corrId=responseMessage.getCorrelationId();
  try {
    Context context=Contexts.lookup(corrId);
    Channel channel=context.getChannel();
    Channels.write(channel,responseMessage);
    Contexts.clear(context);
  }
 catch (  NoSuchContextException e) {
    LOG.warn("String_Node_Str",e);
    LOG.debug(responseMessage);
  }
}
Program: 15034
Project: 15034
Buggy source:
/** 
 * Filters and classifies exceptions -- all JPA/hibernate exceptions are runtime exceptions. Those which can be handled by the application, or which give feedback about the underlying cause of the failure (e.g., constraints violation).
 * @param e
 * @see {@link http://docs.jboss.org/hibernate/core/3.5/api/org/hibernate/HibernateException.html}
 */
@SuppressWarnings("String_Node_Str") static RecoverablePersistenceException throwFiltered(final Throwable e){
  ConstraintViolationException cause=Exceptions.causedBy(e,ConstraintViolationException.class);
  if (cause != null) {
    throw cause;
  }
 else {
    Logs.extreme().error(e,e);
    if (e instanceof RuntimeException) {
      final ErrorCategory category=PersistenceExceptions.classify(e);
      final RuntimeException up=category.handleException((RuntimeException)e);
      if (!category.isRecoverable()) {
        throw up;
      }
 else {
        return new RecoverablePersistenceException("String_Node_Str" + Joiner.on('\n').join(Exceptions.causes(e)),e);
      }
    }
 else {
      throw ErrorCategory.APPLICATION.handleException(new PersistenceException("String_Node_Str" + e.getMessage(),e));
    }
  }
}

Fixed version (ground truth):
/** 
 * Filters and classifies exceptions -- all JPA/hibernate exceptions are runtime exceptions. Those which can be handled by the application, or which give feedback about the underlying cause of the failure (e.g., constraints violation).
 * @param e
 * @see {@link http://docs.jboss.org/hibernate/core/3.5/api/org/hibernate/HibernateException.html}
 */
@SuppressWarnings("String_Node_Str") static RecoverablePersistenceException throwFiltered(final Throwable e){
  ConstraintViolationException cause=Exceptions.causedBy(e,ConstraintViolationException.class);
  if (cause != null) {
    throw cause;
  }
 else {
    Logs.exhaust().trace(e,e);
    if (e instanceof RuntimeException) {
      final ErrorCategory category=PersistenceExceptions.classify(e);
      final RuntimeException up=category.handleException((RuntimeException)e);
      if (!category.isRecoverable()) {
        throw up;
      }
 else {
        return new RecoverablePersistenceException("String_Node_Str" + Joiner.on('\n').join(Exceptions.causes(e)),e);
      }
    }
 else {
      throw ErrorCategory.APPLICATION.handleException(new PersistenceException("String_Node_Str" + e.getMessage(),e));
    }
  }
}
Program: 15035
Project: 15035
Buggy source:
private static void serializeClusterConfiguration(ServiceConfiguration serviceConf,SearchResultRow result){
  ClusterConfiguration clusterConf=(ClusterConfiguration)serviceConf;
  result.addField(makeConfigId(clusterConf.getName(),CLUSTER_TYPE));
  result.addField(clusterConf.getName());
  result.addField(CLUSTER_TYPE);
  result.addField(clusterConf.getHostName());
  result.addField(clusterConf.getPort() == null ? null : clusterConf.getPort().toString());
  result.addField(clusterConf.getMinVlan() == null ? null : clusterConf.getMinVlan().toString());
  result.addField(clusterConf.getMaxVlan() == null ? null : clusterConf.getMaxVlan().toString());
}

Fixed version (ground truth):
private static void serializeClusterConfiguration(ServiceConfiguration serviceConf,SearchResultRow result){
  ClusterConfiguration clusterConf=(ClusterConfiguration)serviceConf;
  result.addField(makeConfigId(clusterConf.getName(),CLUSTER_TYPE));
  result.addField(clusterConf.getName());
  result.addField(CLUSTER_TYPE);
  result.addField(clusterConf.getHostName());
  result.addField(clusterConf.getPort() == null ? null : clusterConf.getPort().toString());
  result.addField(clusterConf.getMinVlan() == null ? "String_Node_Str" : clusterConf.getMinVlan().toString());
  result.addField(clusterConf.getMaxVlan() == null ? "String_Node_Str" : clusterConf.getMaxVlan().toString());
}
Program: 15036
Project: 15036
Buggy source:
private void store(){
  try {
    ListenerRegistry.getInstance().fireEvent(new InstanceEvent(this.getInstanceUuid(),this.getDisplayName(),this.vmType.getName(),this.getOwner().getNamespace(),null,this.getOwner().getName(),null,this.clusterName,this.partitionName,this.networkBytes,this.blockBytes));
  }
 catch (  EventFailedException ex) {
    LOG.error(ex,ex);
  }
  try {
    Transactions.one(VmInstance.named((UserFullName)this.getOwner(),this.getDisplayName()),new Callback<VmInstance>(){
      @Override public void fire(      VmInstance t){
        t.setBlockBytes(VmInstance.this.getBlockBytes());
        t.setNetworkBytes(VmInstance.this.getNetworkBytes());
      }
    }
);
  }
 catch (  ExecutionException ex) {
    LOG.error(ex,ex);
  }
}

Fixed version (ground truth):
private void store(){
  try {
    ListenerRegistry.getInstance().fireEvent(new InstanceEvent(this.getInstanceUuid(),this.getDisplayName(),this.vmType.getName(),this.getOwner().getNamespace(),null,this.getOwner().getName(),null,this.clusterName,this.partitionName,this.networkBytes,this.blockBytes));
  }
 catch (  EventFailedException ex) {
    LOG.error(ex,ex);
  }
  try {
    Transactions.one(VmInstance.named((UserFullName)this.getOwner(),this.getDisplayName()),new Callback<VmInstance>(){
      @Override public void fire(      VmInstance t){
        t.setBlockBytes(VmInstance.this.getBlockBytes());
        t.setNetworkBytes(VmInstance.this.getNetworkBytes());
      }
    }
);
  }
 catch (  Exception ex) {
    LOG.error(ex,ex);
  }
}
Program: 15038
Project: 15038
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public Long apply(OwnerFullName input){
  EntityWrapper<Volume> db=Entities.get(Volume.class);
  List<Volume> vols=db.createCriteria(Volume.class).add(Example.create(Snapshots.named(input,null))).setReadOnly(true).setCacheable(false).list();
  Long size=0l;
  for (  Volume v : vols) {
    size+=v.getSize();
  }
  db.rollback();
  return size;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public Long apply(OwnerFullName input){
  EntityWrapper<Volume> db=Entities.get(Volume.class);
  List<Volume> vols=db.createCriteria(Volume.class).add(Example.create(Volume.named(input,null))).setReadOnly(true).setCacheable(false).list();
  Long size=0l;
  for (  Volume v : vols) {
    size+=v.getSize();
  }
  db.rollback();
  return size;
}
Program: 15039
Project: 15039
Buggy source:
public static void triggerCaching(Image.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getManifestLocation().split("String_Node_Str");
  CacheImageType cache=new CacheImageType().regarding(Contexts.lookup().getRequest());
  cache.setBucket(parts[0]);
  cache.setKey(parts[1]);
  ServiceDispatcher.lookupSingle(Components.lookup("String_Node_Str")).dispatch(cache);
}

Fixed version (ground truth):
public static void triggerCaching(ImageMetadata.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getManifestLocation().split("String_Node_Str");
  CacheImageType cache=new CacheImageType().regarding(Contexts.lookup().getRequest());
  cache.setBucket(parts[0]);
  cache.setKey(parts[1]);
  ServiceDispatcher.lookupSingle(Components.lookup("String_Node_Str")).dispatch(cache);
}
Program: 15040
Project: 15040
Buggy source:
public static void invalidate(Image.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getManifestLocation().split("String_Node_Str");
  try {
    ServiceDispatcher.lookupSingle(Components.lookup(Walrus.class)).dispatch(new FlushCachedImageType(parts[0],parts[1]));
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public static void invalidate(ImageMetadata.StaticDiskImage imgInfo){
  String[] parts=imgInfo.getManifestLocation().split("String_Node_Str");
  try {
    ServiceDispatcher.lookupSingle(Components.lookup(Walrus.class)).dispatch(new FlushCachedImageType(parts[0],parts[1]));
  }
 catch (  Exception e) {
  }
}
Program: 15041
Project: 15041
Buggy source:
public static VmInstance named(final UserFullName userFullName,final String instanceId){
  return new VmInstance(userFullName,instanceId);
}

Fixed version (ground truth):
public static VmInstance named(final OwnerFullName ownerFullName,final String instanceId){
  return new VmInstance(ownerFullName,instanceId);
}
Program: 15042
Project: 15042
Buggy source:
public static VmInstance namedTerminated(final UserFullName userFullName,final String instanceId){
  return new VmInstance(userFullName,instanceId){
    /** 
 */
    private static final long serialVersionUID=1L;
{
      this.runtimeState.set(VmState.TERMINATED,false);
    }
  }
;
}

Fixed version (ground truth):
public static VmInstance namedTerminated(final OwnerFullName ownerFullName,final String instanceId){
  return new VmInstance(ownerFullName,instanceId){
{
      this.runtimeState.set(VmState.TERMINATED,false);
    }
  }
;
}
Program: 15043
Project: 15043
Buggy source:
private static void serializeClusterConfiguration(ServiceConfiguration serviceConf,SearchResultRow result){
  ClusterConfiguration clusterConf=(ClusterConfiguration)serviceConf;
  result.addField(makeConfigId(clusterConf.getName(),CLUSTER_TYPE));
  result.addField(clusterConf.getName());
  result.addField(CLUSTER_TYPE);
  result.addField(clusterConf.getHostName());
  result.addField(clusterConf.getPort() == null ? null : clusterConf.getPort().toString());
  result.addField(clusterConf.getMinVlan() == null ? null : clusterConf.getMinVlan().toString());
  result.addField(clusterConf.getMaxVlan() == null ? null : clusterConf.getMaxVlan().toString());
}

Fixed version (ground truth):
private static void serializeClusterConfiguration(ServiceConfiguration serviceConf,SearchResultRow result){
  ClusterConfiguration clusterConf=(ClusterConfiguration)serviceConf;
  result.addField(makeConfigId(clusterConf.getName(),CLUSTER_TYPE));
  result.addField(clusterConf.getName());
  result.addField(CLUSTER_TYPE);
  result.addField(clusterConf.getHostName());
  result.addField(clusterConf.getPort() == null ? null : clusterConf.getPort().toString());
  result.addField(clusterConf.getMinVlan() == null ? "String_Node_Str" : clusterConf.getMinVlan().toString());
  result.addField(clusterConf.getMaxVlan() == null ? "String_Node_Str" : clusterConf.getMaxVlan().toString());
}
Program: 15044
Project: 15044
Buggy source:
public void setSecretKey(final String key) throws AuthException {
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t) throws Throwable {
        t.setSecretKey(key);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}

Fixed version (ground truth):
public void setSecretKey(final String key) throws AuthException {
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t){
        t.setSecretKey(key);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}
Program: 15045
Project: 15045
Buggy source:
@Override public void setActive(final Boolean active) throws AuthException {
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t) throws Throwable {
        t.setActive(active);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}

Fixed version (ground truth):
@Override public void setActive(final Boolean active) throws AuthException {
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t){
        t.setActive(active);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}
Program: 15046
Project: 15046
Buggy source:
@Override public void setCreateDate(final Date createDate) throws AuthException {
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t) throws Throwable {
        t.setCreateDate(createDate);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}

Fixed version (ground truth):
@Override public void setCreateDate(final Date createDate) throws AuthException {
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t){
        t.setCreateDate(createDate);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}
Program: 15047
Project: 15047
Buggy source:
@Override public User getUser() throws AuthException {
  final List<User> results=Lists.newArrayList();
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t) throws Throwable {
        results.add(new DatabaseUserProxy(t.getUser()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
  return results.get(0);
}

Fixed version (ground truth):
@Override public User getUser() throws AuthException {
  final List<User> results=Lists.newArrayList();
  try {
    Transactions.one(AccessKeyEntity.newInstanceWithAccessKeyId(this.delegate.getAccessKey()),new Tx<AccessKeyEntity>(){
      public void fire(      AccessKeyEntity t){
        results.add(new DatabaseUserProxy(t.getUser()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
  return results.get(0);
}
Program: 15048
Project: 15048
Buggy source:
public void fire(AccessKeyEntity t) throws Throwable {
  results.add(new DatabaseUserProxy(t.getUser()));
}

Fixed version (ground truth):
public void fire(AccessKeyEntity t){
  results.add(new DatabaseUserProxy(t.getUser()));
}
Program: 15049
Project: 15049
Buggy source:
@Override public void setName(final String name) throws AuthException {
  try {
    (new DatabaseAuthProvider()).lookupAccountByName(name);
  }
 catch (  AuthException ae) {
    try {
      Transactions.one(AccountEntity.newInstanceWithAccountNumber(this.delegate.getAccountNumber()),new Tx<AccountEntity>(){
        public void fire(        AccountEntity t) throws Throwable {
          t.setName(name);
        }
      }
);
    }
 catch (    Exception e) {
      Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
      throw new AuthException(e);
    }
    return;
  }
  throw new AuthException("String_Node_Str" + name);
}

Fixed version (ground truth):
@Override public void setName(final String name) throws AuthException {
  try {
    (new DatabaseAuthProvider()).lookupAccountByName(name);
  }
 catch (  AuthException ae) {
    try {
      Transactions.one(AccountEntity.newInstanceWithAccountNumber(this.delegate.getAccountNumber()),new Tx<AccountEntity>(){
        public void fire(        AccountEntity t){
          t.setName(name);
        }
      }
);
    }
 catch (    Exception e) {
      Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
      throw new AuthException(e);
    }
    return;
  }
  throw new AuthException("String_Node_Str" + name);
}
Program: 15050
Project: 15050
Buggy source:
public void fire(AccountEntity t) throws Throwable {
  t.setName(name);
}

Fixed version (ground truth):
public void fire(AccountEntity t){
  t.setName(name);
}
Program: 15051
Project: 15051
Buggy source:
@Override public Set<String> getResources(){
  final Set<String> results=Sets.newHashSet();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t) throws Throwable {
        results.addAll(t.getResources());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results;
}

Fixed version (ground truth):
@Override public Set<String> getResources(){
  final Set<String> results=Sets.newHashSet();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t){
        results.addAll(t.getResources());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results;
}
Program: 15052
Project: 15052
Buggy source:
@Override public Group getGroup(){
  final List<Group> results=Lists.newArrayList();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t) throws Throwable {
        results.add(new DatabaseGroupProxy(t.getStatement().getPolicy().getGroup()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results.get(0);
}

Fixed version (ground truth):
@Override public Group getGroup(){
  final List<Group> results=Lists.newArrayList();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t){
        results.add(new DatabaseGroupProxy(t.getStatement().getPolicy().getGroup()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results.get(0);
}
Program: 15053
Project: 15053
Buggy source:
public void fire(AuthorizationEntity t) throws Throwable {
  results.add(new DatabaseGroupProxy(t.getStatement().getPolicy().getGroup()));
}

Fixed version (ground truth):
public void fire(AuthorizationEntity t){
  results.add(new DatabaseGroupProxy(t.getStatement().getPolicy().getGroup()));
}
Program: 15054
Project: 15054
Buggy source:
@Override public List<Condition> getConditions(){
  final List<Condition> results=Lists.newArrayList();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t) throws Throwable {
        for (        ConditionEntity c : t.getStatement().getConditions()) {
          results.add(new DatabaseConditionProxy(c));
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results;
}

Fixed version (ground truth):
@Override public List<Condition> getConditions(){
  final List<Condition> results=Lists.newArrayList();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t){
        for (        ConditionEntity c : t.getStatement().getConditions()) {
          results.add(new DatabaseConditionProxy(c));
        }
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results;
}
Program: 15055
Project: 15055
Buggy source:
@Override public String toString(){
  final StringBuilder sb=new StringBuilder();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t) throws Throwable {
        sb.append(t.toString());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  final StringBuilder sb=new StringBuilder();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t){
        sb.append(t.toString());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return sb.toString();
}
Program: 15056
Project: 15056
Buggy source:
@Override public Set<String> getActions(){
  final Set<String> results=Sets.newHashSet();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t) throws Throwable {
        results.addAll(t.getActions());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results;
}

Fixed version (ground truth):
@Override public Set<String> getActions(){
  final Set<String> results=Sets.newHashSet();
  try {
    Transactions.one(AuthorizationEntity.newInstanceWithId(this.delegate.getAuthorizationId()),new Tx<AuthorizationEntity>(){
      public void fire(      AuthorizationEntity t){
        results.addAll(t.getActions());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return results;
}
Program: 15057
Project: 15057
Buggy source:
@Override public User getUser() throws AuthException {
  final List<User> results=Lists.newArrayList();
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t) throws Throwable {
        results.add(new DatabaseUserProxy(t.getUser()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
  return results.get(0);
}

Fixed version (ground truth):
@Override public User getUser() throws AuthException {
  final List<User> results=Lists.newArrayList();
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t){
        results.add(new DatabaseUserProxy(t.getUser()));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
  return results.get(0);
}
Program: 15058
Project: 15058
Buggy source:
@Override public void setX509Certificate(final X509Certificate x509) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t) throws Throwable {
        t.setPem(X509CertHelper.fromCertificate(x509));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}

Fixed version (ground truth):
@Override public void setX509Certificate(final X509Certificate x509) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t){
        t.setPem(X509CertHelper.fromCertificate(x509));
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}
Program: 15059
Project: 15059
Buggy source:
@Override public void setRevoked(final Boolean revoked) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t) throws Throwable {
        t.setRevoked(revoked);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}

Fixed version (ground truth):
@Override public void setRevoked(final Boolean revoked) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t){
        t.setRevoked(revoked);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}
Program: 15060
Project: 15060
Buggy source:
@Override public void setActive(final Boolean active) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t) throws Throwable {
        t.setActive(active);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}

Fixed version (ground truth):
@Override public void setActive(final Boolean active) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t){
        t.setActive(active);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}
Program: 15061
Project: 15061
Buggy source:
@Override public void setCreateDate(final Date createDate) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t) throws Throwable {
        t.setCreateDate(createDate);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}

Fixed version (ground truth):
@Override public void setCreateDate(final Date createDate) throws AuthException {
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t){
        t.setCreateDate(createDate);
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
    throw new AuthException(e);
  }
}
Program: 15062
Project: 15062
Buggy source:
public void fire(CertificateEntity t) throws Throwable {
  t.setPem(X509CertHelper.fromCertificate(x509));
}

Fixed version (ground truth):
public void fire(CertificateEntity t){
  t.setPem(X509CertHelper.fromCertificate(x509));
}
Program: 15063
Project: 15063
Buggy source:
@Override public String toString(){
  final StringBuilder sb=new StringBuilder();
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t) throws Throwable {
        sb.append(t.toString());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  final StringBuilder sb=new StringBuilder();
  try {
    Transactions.one(CertificateEntity.newInstanceWithId(this.delegate.getCertificateId()),new Tx<CertificateEntity>(){
      public void fire(      CertificateEntity t){
        sb.append(t.toString());
      }
    }
);
  }
 catch (  ExecutionException e) {
    Debugging.logError(LOG,e,"String_Node_Str" + this.delegate);
  }
  return sb.toString();
}