public ObjectAdapter adapterFor(final Object pattern) {
return adapters.get(pattern);
}
};
reflector = new ObjectReflectorDefault(configuration, new TestClassSubstitutor(), new CollectionTypeRegistryDefault(), new SpecificationTraverserDefault(), new MemberLayoutArrangerDefault(), new ProgrammingModelFacetsJava5(), new HashSet<FacetDecorator>(), new MetaModelValidatorDefault());
reflector.setRuntimeContext(new RuntimeContextNoRuntime() {
@Override
public AdapterMap getAdapterMap() {
return adapterMap;