Added java doc to new method.