Extract JavaMetric from Metric
Replace 'git' command by JGit (fix #8)