Program: 176700
Project: 176700
Buggy source:
/** 
 * Persists a   {@link Node} to database
 */
@Override protected void onPersist(EntityMetadata entityMetadata,Object entity,Object id,List<RelationHolder> rlHolders){
  Cassandra.Client conn=PelopsUtils.getCassandraConnection(pool);
  try {
    Map<ByteBuffer,Map<String,List<Mutation>>> mutationMap=new HashMap<ByteBuffer,Map<String,List<Mutation>>>();
    MetamodelImpl metaModel=(MetamodelImpl)KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(entityMetadata.getPersistenceUnit());
    if (metaModel.isEmbeddable(entityMetadata.getIdAttribute().getBindableJavaType())) {
      onpersistOverCompositeKey(entityMetadata,entity,conn);
    }
 else {
      prepareMutation(entityMetadata,entity,id,rlHolders,mutationMap);
      conn.batch_mutate(mutationMap,getConsistencyLevel());
    }
    mutationMap.clear();
    mutationMap=null;
  }
 catch (  InvalidRequestException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  TException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  UnavailableException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  TimedOutException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  SchemaDisagreementException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  UnsupportedEncodingException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
 finally {
    PelopsUtils.releaseConnection(pool,conn);
  }
}

Fixed version (ground truth):
/** 
 * Persists a   {@link Node} to database
 */
@Override protected void onPersist(EntityMetadata entityMetadata,Object entity,Object id,List<RelationHolder> rlHolders){
  Cassandra.Client conn=PelopsUtils.getCassandraConnection(pool);
  try {
    Map<ByteBuffer,Map<String,List<Mutation>>> mutationMap=new HashMap<ByteBuffer,Map<String,List<Mutation>>>();
    MetamodelImpl metaModel=(MetamodelImpl)KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(entityMetadata.getPersistenceUnit());
    if (metaModel.isEmbeddable(entityMetadata.getIdAttribute().getBindableJavaType())) {
      onpersistOverCompositeKey(entityMetadata,entity,conn,rlHolders);
    }
 else {
      prepareMutation(entityMetadata,entity,id,rlHolders,mutationMap);
      conn.batch_mutate(mutationMap,getConsistencyLevel());
    }
    mutationMap.clear();
    mutationMap=null;
  }
 catch (  InvalidRequestException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  TException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  UnavailableException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  TimedOutException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  SchemaDisagreementException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
catch (  UnsupportedEncodingException e) {
    log.error("String_Node_Str",e);
    throw new KunderaException(e);
  }
 finally {
    PelopsUtils.releaseConnection(pool,conn);
  }
}