code: @Override
      public void setEnvironment(Environment env) {
      	if (env instanceof AbstractEnvironment) {
      		this.env = (AbstractEnvironment)env;
      	} else {
      		throw new RuntimeException("env is not an AbstractEnvironment. " + env.getClass().getCanonicalName());
      	}
      	
      }
docs: /* (non-Javadoc)
  @see org.springframework.context.EnvironmentAware#setEnvironment(org.springframework.core.env.Environment)