code: StandardEnvironment convertEnvironmentIfNecessary(ConfigurableEnvironment environment,
  			Class<? extends StandardEnvironment> type) {
  		if (type.equals(environment.getClass())) {
  			return (StandardEnvironment) environment;
  		}
  		return convertEnvironment(environment, type);
  	}
docs: Converts the given {@code environment} to the given {@link StandardEnvironment}
  type. If the environment is already of the same type, no conversion is performed
  and it is returned unchanged.
  @param environment the Environment to convert
  @param type the type to convert the Environment to
  @return the converted Environment