class Utils {

   public static String getNamespace(String name) {
      assertNotNull(name, "name may not be null");
      String [] parts = name.split("\\:", 2);
      if(parts.length != 2) {
         throw new IllegalArgumentException(name + " is not namespaced");
      }
      return parts[0];
   }

   private  Utils();

}