Added a helper funtion for YAWS appmods.