if ( type == ValueMap.class || type == Map.class ) {
this.dbObject = this.provider.getUpdatedDBObject(this.resourcePath, this.dbObject);
return (AdapterType) new DeepReadValueMapDecorator(this, new ReadableValueMap(this.dbObject));
} else if ( type == ModifiableValueMap.class ) {
this.dbObject = this.provider.getUpdatedDBObject(this.resourcePath, this.dbObject);
return (AdapterType) new DeepReadModifiableValueMapDecorator(this, new ChangeableValueMap(this));
}
return super.adaptTo(type);
}