Defending realism. Ontological and epistemological investigations