Added catching exception for used reflection.