put class name extraction into util class