docs: @SuppressWarnings("unchecked")
  	public <T> T getInstance(Class<T> beanClass) {
  		String[] beanNames = applicationContext.getBeanNamesForType(beanClass);
  		if (beanNames.length == 0) {
  			return null;
  		}
  		return (T) applicationContext.getBean(beanNames[0]);
  	}