List<Properties> triggerOtions = new ArrayList<>();
if (packageSource != null && packageSource.getPushStrategy() != null) {
ModifyStrategy pushStrategy = packageSource.getPushStrategy();
final List<BeforeTrigger> beforeTriggers = pushStrategy.getBeforePushTriggers();
for (int i = 0; i < beforeTriggers.size(); i++) {
BeforeTrigger beforeTrigger = beforeTriggers.get(i);
Properties properties = new Properties(format("Триггер {0}", i + 1));
triggerOtions.add(properties);
Property classProperty = new Property("triggerClass", "Имя класса триггера", beforeTrigger.getClass().getName());
properties.getProperties().add(classProperty);
properties.getProperties().addAll(getObjectProperties(beforeTrigger));
}
}
return triggerOtions;