WICKET-5600 Introduce CharSequenceResource similar to ByteArrayResource

(cherry picked from commit 7b6b888839327f0c0095bd60bb8a067528bc3139)
Remove not needed method