This method seems to be used only in test code. Can it be deleted?