protected void checkBeanExists(final String name) {
    if (name == null) { throw new NullPointerException("Bean name cannot be null"); }
    if (!beansManager.getContainer().containsBean(name)) {
      throw new IllegalArgumentException("Bean " + name + " does not exist");
    }
  }
protected void checkBeanExists(final String name) {
    if (name == null) { throw new NullPointerException("Bean name cannot be null"); }
    if (!beansManager.getContainer().containsBean(name)) {
      throw new IllegalArgumentException("Bean " + name + " does not exist");
    }
  }
protected void checkBeanExists ( final String name ) { if ( name == null ) { throw new NullPointerException ( "Bean name cannot be null" ) ; } if ( ! beansManager . getContainer ( ) . containsBean ( name ) ) { throw new IllegalArgumentException ( "Bean " + name + " does not exist" ) ; } }
Throw {@link IllegalArgumentException} if the specified bean does not exist in the beans container.
@param name bean name
Throw {