class Addresses {

   public static String toServiceAddress(String namespace) {
      if(namespace == null) throw new IllegalArgumentException("namespace may not be null");
      String prefix = getPrefixForNamespace(namespace);
      return prefix + namespace + ":";
   }

}