Added javadoc for a method