try
{
final StopWatch stopwatch;
if (context.shouldExecute()) {
Repository repository = Repository.INSTANCE;
if (repository==null){
System.out.println("repository is null");
}
final Counter monitor = repository.getCounter(getKey(invocation, name));
if ( monitor == null){
System.out.println("monitor is null");
}
stopwatch = Repository.INSTANCE.start(monitor);
} else {