wrap application in new relic agent