code: static char getFirstCharLocName(String name) {
          final char first;
          int i = name.indexOf('}');
          if (i < 0)
              first = name.charAt(0);
          else
              first = name.charAt(i+1);
          return first;
      }
docs: Get the first char of the local name
  @param name Either a local name, or a local name
  preceeded by a uri enclosed in curly braces.