I have checked all the examples but couldn't find anything related to it. Is there any helper method to do this?