Program: 176377
Project: 176377
Buggy source:
/** 
 * Populates collection field(s) into entity
 * @param entity
 * @param thriftColumnValue
 * @param attribute
 */
private void setCollectionValue(Object entity,Object thriftColumnValue,Attribute attribute){
  try {
    if (Collection.class.isAssignableFrom(((Field)attribute.getJavaMember()).getType())) {
      Collection outputCollection=null;
      ByteBuffer valueByteBuffer=ByteBuffer.wrap((byte[])thriftColumnValue);
      Class<?> genericClass=PropertyAccessorHelper.getGenericClass((Field)attribute.getJavaMember());
      Class<?> valueValidationClass=CassandraValidationClassMapper.getValidationClassInstance(genericClass,true);
      Object valueClassInstance=valueValidationClass.getDeclaredField("String_Node_Str").get(null);
      if (((Field)attribute.getJavaMember()).getType().isAssignableFrom(List.class)) {
        ListType listType=ListType.getInstance((AbstractType)valueClassInstance);
        outputCollection=new ArrayList();
        outputCollection.addAll(listType.compose(valueByteBuffer));
      }
 else       if (((Field)attribute.getJavaMember()).getType().isAssignableFrom(Set.class)) {
        SetType setType=SetType.getInstance((AbstractType)valueClassInstance);
        outputCollection=new HashSet();
        outputCollection.addAll(setType.compose(valueByteBuffer));
      }
      PropertyAccessorHelper.set(entity,(Field)attribute.getJavaMember(),outputCollection);
    }
 else     if (((Field)attribute.getJavaMember()).getType().isAssignableFrom(Map.class)) {
      ByteBuffer valueByteBuffer=ByteBuffer.wrap((byte[])thriftColumnValue);
      List<Class<?>> mapGenericClasses=PropertyAccessorHelper.getGenericClasses((Field)attribute.getJavaMember());
      Class keyClass=CassandraValidationClassMapper.getValidationClassInstance(mapGenericClasses.get(0),true);
      Class valueClass=CassandraValidationClassMapper.getValidationClassInstance(mapGenericClasses.get(1),true);
      Object keyClassInstance=keyClass.getDeclaredField("String_Node_Str").get(null);
      Object valueClassInstance=valueClass.getDeclaredField("String_Node_Str").get(null);
      MapType mapType=MapType.getInstance((AbstractType)keyClassInstance,(AbstractType)valueClassInstance);
      Map outputMap=new HashMap();
      outputMap.putAll(mapType.compose(valueByteBuffer));
      PropertyAccessorHelper.set(entity,(Field)attribute.getJavaMember(),outputMap);
    }
  }
 catch (  IllegalArgumentException e) {
    log.error("String_Node_Str",attribute.getName(),e);
  }
catch (  SecurityException e) {
    log.error("String_Node_Str",attribute.getName(),e);
  }
catch (  IllegalAccessException e) {
    log.error("String_Node_Str",attribute.getName(),e);
  }
catch (  NoSuchFieldException e) {
    log.error("String_Node_Str",attribute.getName(),e);
  }
}

Fixed version (ground truth):
/** 
 * Populates collection field(s) into entity
 * @param entity
 * @param thriftColumnValue
 * @param attribute
 */
private void setCollectionValue(Object entity,Object thriftColumnValue,Attribute attribute){
  try {
    if (Collection.class.isAssignableFrom(((Field)attribute.getJavaMember()).getType())) {
      Collection outputCollection=null;
      ByteBuffer valueByteBuffer=ByteBuffer.wrap((byte[])thriftColumnValue);
      Class<?> genericClass=PropertyAccessorHelper.getGenericClass((Field)attribute.getJavaMember());
      Class<?> valueValidationClass=CassandraValidationClassMapper.getValidationClassInstance(genericClass,true);
      Object valueClassInstance=valueValidationClass.getDeclaredField("String_Node_Str").get(null);
      if (((Field)attribute.getJavaMember()).getType().isAssignableFrom(List.class)) {
        ListType listType=ListType.getInstance((AbstractType)valueClassInstance);
        outputCollection=new ArrayList();
        outputCollection.addAll(listType.compose(valueByteBuffer));
      }
 else       if (((Field)attribute.getJavaMember()).getType().isAssignableFrom(Set.class)) {
        SetType setType=SetType.getInstance((AbstractType)valueClassInstance);
        outputCollection=new HashSet();
        outputCollection.addAll(setType.compose(valueByteBuffer));
      }
      PropertyAccessorHelper.set(entity,(Field)attribute.getJavaMember(),outputCollection);
    }
 else     if (((Field)attribute.getJavaMember()).getType().isAssignableFrom(Map.class)) {
      ByteBuffer valueByteBuffer=ByteBuffer.wrap((byte[])thriftColumnValue);
      List<Class<?>> mapGenericClasses=PropertyAccessorHelper.getGenericClasses((Field)attribute.getJavaMember());
      Class keyClass=CassandraValidationClassMapper.getValidationClassInstance(mapGenericClasses.get(0),true);
      Class valueClass=CassandraValidationClassMapper.getValidationClassInstance(mapGenericClasses.get(1),true);
      Object keyClassInstance=keyClass.getDeclaredField("String_Node_Str").get(null);
      Object valueClassInstance=valueClass.getDeclaredField("String_Node_Str").get(null);
      MapType mapType=MapType.getInstance((AbstractType)keyClassInstance,(AbstractType)valueClassInstance);
      Map outputMap=new HashMap();
      outputMap.putAll(mapType.compose(valueByteBuffer));
      PropertyAccessorHelper.set(entity,(Field)attribute.getJavaMember(),outputMap);
    }
  }
 catch (  Exception e) {
    log.error("String_Node_Str",attribute.getName(),e);
    throw new PersistenceException(e);
  }
}