refactor ReourceUtil