Hehe, more simply

if (operation.get(OP).asString().equals(WRITE_ATTRIBUTE_OPERATION)) {