It would be good to add javadoc for this method.