Modified session metadata api to accept model classes