Get application pid

Get application pid from application context