Java metrics - basic app skeleton