make EntityResolver() object based