code: private static String stripKey(final String key) {
          int index = key.indexOf(".");
          if (index > 0) {
              return key.substring(0, index);
          }
          return null;
      }
docs: strip the original key by taking every thing from the start of the
  original key to the first dot.
  
  @param key
  @return