Added logic for extracting the main class of xar.