You shouldn't copy code. You may change this method in its class or/and move it to util instead.