This should work says the JavaDocs.