* @param container the {@link Container}
* @return the constructed {@link AppmasterCmOperations} template
*/
protected AppmasterCmOperations getCmTemplate(Container container) {
try {
AppmasterCmTemplate template = new AppmasterCmTemplate(getConfiguration(), container);
template.afterPropertiesSet();
return template;
} catch (Exception e) {
throw new YarnSystemException("Unable to create AppmasterCmTemplate", e);
}
}