/**
  * Returns an instance of a given class based on the UI or Headless context.
  *
  * @param key
  * @return new class instance for the given key.
  * @throws IllegalArgumentException If the key is invalid (e.g. no extension is found for the key)
  * @deprecated Replaced by (@link
  *     org.eclipse.wst.common.core.util.UIContextDetermination.createInstance())
  */
 public static Object createInstance(String key) {
   return org.eclipse.wst.common.core.util.UIContextDetermination.createInstance(key);
 }