public void write(final List<PersistenceCommand> commands) {
final ClientConnection connection = getConnection();
PersistenceCommand currentCommand = null;
try {
connection.request('W', "");
final NoSqlCommandContext context = new FileClientCommandContext(connection);
for (final PersistenceCommand command : commands) {
currentCommand = command;
command.execute(context);
}
connection.validateRequest();