properly substitute legacy variable to new jbosseap variable name