Wrote util method to determine application name (main class) and wrote test