code: public static Object getBean(String id) {
          ApplicationContext appContext = getAppContext();
          return appContext == null ? null : appContext.containsBean(id) ? appContext.getBean(id) : null;
      }
docs: Returns the bean with an id matching the specified id, or null if none found.
  
  @param id Bean id
  @return Returns the bean instance whose id matches the specified id, or null if none found or
  if the application context cannot be determined.