Theory and Practice of Application Profile Development