private Profile getProcessProfile(ProcessRequirements requirements, boolean includeController, Container container) {
String versionId = container.getVersion().getId();
String profileId = "process-profile-" + requirements.getId();
ProfileBuilder builder = ProfileBuilder.Factory.create(versionId, profileId);
ProcessProfileOptions optionsProvider = new ProcessProfileOptions(container, requirements, includeController);
return builder.addOptions(optionsProvider).getProfile();
}
static class ProcessProfileOptions implements OptionsProvider<ProfileBuilder> {
private final Container container;