}
if (tags != null) {
for (Map.Entry<String, String> entry : tags.entrySet()) {
if (entry.getKey().contains(" ")) {
throw new IllegalArgumentException("Series tag name can include only printable characters");
<BUG>}
command += " t:" + escape(entry.getKey()) +"=" + escape(entry.getValue());
</BUG>
}
}

}
if (metric.contains(" ")) {
throw new IllegalArgumentException("Metric name can include only printable characters");
}
String command = "series";
command += " ms:" + date.getTime();
command += " e:" + escape(entity);
command += " m:" + escape(metric)+"=" + value;
