Can't you do that from a custom AttributeManager ? Maybe we need to pass some more context information when invoking it.