private void addGroupToBuilder(CollectionSetBuilder builder, Resource resource, AttributeGroup group) {
for (CollectionAttribute attribute : group.getAttributes()) {
String value;
if(!attribute.shouldPersist(params)){
continue;
} else if (attribute.getAttributeType() instanceof HexStringAttributeType) {
value = ((SnmpAttribute) attribute).getValue().toHexString();
} else {
value = attribute.getStringValue();
}
builder.withAttribute(resource, group.getName(), attribute.getName(), value, attribute.getType());
}
}
}