Solves issue https://github.com/roboguice/roboguice/issues/261