Please move this static method to utility class