Can you please add javadoc for this method explaining what this method is for and when this method should be called.