throw new SpringApplicationException("Error executing a spring application", new IllegalArgumentException(
"Instance id must be set"));
}
SpringApplicationBuilder builder = new SpringApplicationBuilder();
builder.web(false);
builder.sources(YarnPushApplication.class);
SpringYarnBootUtils.addSources(builder, sources.toArray(new Object[0]));
SpringYarnBootUtils.addProfiles(builder, profiles.toArray(new String[0]));
SpringYarnBootUtils.addConfigFilesContents(builder, configFilesContents);
if (StringUtils.hasText(applicationBaseDir)) {