}
values.add(ByteString.valueOf(newState));
LDAPAttribute attr = new LDAPAttribute(ATTR_TASK_STATE, values);
mods.add(new LDAPModification(ModificationType.REPLACE, attr));
ModifyRequestProtocolOp modRequest =
new ModifyRequestProtocolOp(dn, mods);
LDAPMessage requestMessage =
new LDAPMessage(nextMessageID.getAndIncrement(), modRequest, null);
writer.writeMessage(requestMessage);