code: public static ConfigurationWrapper wrap(Object toWrap) {
  		// cannot wrap a null element
  		if(toWrap == null) {
  			throw new IllegalArgumentException("A null object cannot be wrapped");
  		}
  		
  		// wrap one of the two types
  		if(toWrap instanceof Bootstrap) {
  			return new BootstrapAnnotationWrapper((Bootstrap)toWrap);
  		} else if(toWrap instanceof Configuration) {
  			return new ConfigurationAnnotationWrapper((Configuration)toWrap);
  		}
  		
  		// should not get here
  		throw new IllegalArgumentException("The object " + toWrap.getClass() + " cannot be wrapped");
  	}
docs: Wrap a {@link Bootstrap} or {@link Configuration} element
  in another class so that they are compatible with the
  same methods
  
  @param toWrap
  @return