* @return the resolved application name.
*
* @throws Exception thrown if the name could not be EL resolved.
*/
public static String resolveAppName(String name, Configuration conf) throws Exception {
ELService elService = Services.get().get(ELService.class);
ELEvaluator elEvaluator = elService.createEvaluator("job-submit");
Map<String, Object> map = new HashMap<String, Object>();
for (Map.Entry<String, String> entry : conf) {
map.put(entry.getKey(), entry.getValue());
}
elEvaluator.getContext().setVariables(map);