We would indeed welcome the contribution, so thank you for offering it! It looks great, and would be a very nice feature for ModeShape.
As you know, ModeShape is licensed under ASL 2.0, and contributions are far simpler when then (and any 3rd party licenses they use) use this same license -- and your code currently does. Because of this, I expect this can be contributed just like any other feature or bug fix. (I'll double check with our legal department just to make sure I'm not missing anything.)
So if you're willing to contribute, start by creating a JIRA issue so we can start the technical discussion (e.g., where it might go in our codebase, how to handle dependencies, etc.), and you can then submit a pull request with the proposed code.