Backport of functionality based on JSR-310 to JDK1.7. This is NOT an implementation of JSR-310.