Pseudo-Algorithm for SetApplicationName

Get the application name and set the ApplicationName profile attribute.