SpringYarnBootUtils.addSources(builder, sources.toArray(new Object[0]));
SpringYarnBootUtils.addProfiles(builder, profiles.toArray(new String[0]));
SpringYarnBootUtils.addApplicationListener(builder, appProperties);
SpringApplicationTemplate template = new SpringApplicationTemplate(builder);
return template.execute(new SpringApplicationCallback<String>() {
@Override
public String runWithSpringApplication(ApplicationContext context) throws Exception {
OperationProperties operationProperties = context.getBean(OperationProperties.class);
YarnClient client = context.getBean(YarnClient.class);