Added more JavaDocs, moved single method from Utils class.