<p>
Benchmark an observable from the point of subscription to the point of completion
</p>

@param name      the name of the observable to print in log statement
@param <T>       The transformation type
@return          The transformer
335938
public static <T> Observable.Transformer<T, T> benchmark(final String name, final Logger logger){
        final long[] startTime = new long[1];
        return new Observable.Transformer<T, T>() {
            @Override
            public Observable<T> call(Observable<T> tObservable) {
                return tObservable
                        .doOnSubscribe(new Action0() {
                            @Override
                            public void call() {
                                startTime[0] = System.nanoTime();
                            }
                        })
                        .doOnCompleted(new Action0() {
                            @Override
                            public void call() {
                                long timeMs = TimeUnit.NANOSECONDS.toMillis(startTime[0]);
                                logger.log(Log.DEBUG, "[%s] Observable Duration: %s", name, TimeUtils.getTimeAgo(timeMs));
                            }
                        });
            }
        };
    }
81210
public static Reader getReader(String name) {
		InputStream inputStream = getInputStream(name);
		if (inputStream != null) {
			BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
			return reader;
		}
		return null;
	}
781069
public IFormalParameterBuilder addParameter(String name) {
		IFormalParameterBuilder builder = this.parameterProvider.get();
		builder.eInit(this.sarlConstructor, name, getTypeResolutionContext());
		return builder;
	}
1034277
public static SerializationFormat getOutputFormat(String name) {
        for (SerializationFormat ft : Instance.serializationFormats) {
            if (ft.isAcceptedAsOutput(name)) {
                return ft;
            }
        }
        return null;
    }
653318
public static Logger getConsoleLogger(final String name) {
        return new Logger() {
            @Override
            public void log(String description, Object... params) {
                System.out.print("[" + name + "]: " + description + "\t");
                for (Object param: params)
                    System.out.print(param + "\t");
                System.out.println();
            }
        };
    }
1172066
public static SerializationFormat getInputFormat(String name) {
        for (SerializationFormat ft : Instance.serializationFormats) {
            if (ft.isAcceptedAsInput(name)) {
                return ft;
            }
        }
        return null;
    }
794371
public <T> T getOnce(final Class<T> clazz, final String name)
	{
		return new JAXBNamedResourceFactory<T>(this.config, this.factory, name, clazz).get();
	}
1134130
public @Nullable <T> T get(@NotNull String name, @NotNull Class<T> type) {
    return getForComponent(component, name, type);
  }
650531
public <T> T getNamedObject(String name, Class<T> type) {
        return type.cast(_named.get(name));
    }
585189
public static ExecutorService getSingleThreadExecutor(String name) {
        ExecutorService ste =
                new ThreadPoolExecutor(1, 1,
                        0L, TimeUnit.MILLISECONDS,
                        new LinkedBlockingQueue<Runnable>(),
                        CoreUtils.getThreadFactory(null, name, SMALL_STACK_SIZE, false, null));
        return ste;
    }
935089
public static transformpolicy get(nitro_service service, String name) throws Exception{
		transformpolicy obj = new transformpolicy();
		obj.set_name(name);
		transformpolicy response = (transformpolicy) obj.get_resource(service);
		return response;
	}
417249
public static <T extends NamedElement> ElementMatcher.Junction<T> namedIgnoreCase(String name) {
        return new NameMatcher<T>(new StringMatcher(name, StringMatcher.Mode.EQUALS_FULLY_IGNORE_CASE));
    }
635316
public AbstractTracer getTracer(String name) throws TracerFactory.Exception {
    this.poolReadLock.lock();
    try {
      return getTracerByName(name);
    }
    finally {
      this.poolReadLock.unlock();
    }
  }
1282715
public static transformpolicy_binding get(nitro_service service, String name) throws Exception{
		transformpolicy_binding obj = new transformpolicy_binding();
		obj.set_name(name);
		transformpolicy_binding response = (transformpolicy_binding) obj.get_resource(service);
		return response;
	}
163226
public static transformpolicy_transformglobal_binding[] get(nitro_service service, String name) throws Exception{
		transformpolicy_transformglobal_binding obj = new transformpolicy_transformglobal_binding();
		obj.set_name(name);
		transformpolicy_transformglobal_binding response[] = (transformpolicy_transformglobal_binding[]) obj.get_resources(service);
		return response;
	}
804064
public Parser<T> label(final String name) {
    return new Parser<T>() {
      @Override public Parser<T> label(String overrideName) {
        return Parser.this.label(overrideName);
      }
      @Override boolean apply(ParseContext ctxt) {
        return ctxt.applyNewNode(Parser.this, name);
      }
      @Override public String toString() {
        return name;
      }
    };
  }
1364545
@SuppressWarnings("RedundantTypeArguments")
    public <T> T get(String name) throws ReflectException {
        return field(name).<T>get();
    }