code: public static <T> T getValue(Class<T> type, Selector selector) throws ExecutionException {
  
          return convert(getValue(selector), type);
      }
docs: Return the selector value represents in the type class.
  
  @param type     the type in witch the value will be return.
  @param selector the selector.
  @return the type value.
  @throws ExecutionException if an error happens.