@Override public boolean exists(String namespace) { checkArgument(namespace != null, "namespace is null"); OpTimer timer = null; if (log.isTraceEnabled()) { log.trace("tid={} Checking if namespace {} exists", Thread.currentThread().getId(), namespace); timer = new OpTimer().start(); } boolean exists = Namespaces.namespaceNameExists(context, namespace); if (timer != null) { timer.stop(); log.trace("tid={} Checked existance of {} in {}", Thread.currentThread().getId(), exists, String.format("%.3f secs", timer.scale(TimeUnit.SECONDS))); } return exists; }