Moved getContents() to Resource interface