int[] count = new int[buffer.attributes.size()];
Iterator<AttributeStructure> iterator = buffer.attributes
.iterator();
int i = 0;
while (iterator.hasNext()) {
AttributeStructure attribute = iterator.next();
ids[i] = attribute.id;
types[i] = attribute.type;
if (!supportedTypes.contains(types[i])) {
throw new ConnectionException(Connection.TPEOS,
"Cannot use type configured in buffer " + types[i]);