private EntityWarning[] restoreItemWarnings(Persistor p) {
List<EntityWarning> warnings = Lists.newArrayList();
for (Persistor child : p.getChildren(ITEM_WARNING)) {
final IntegrationEntityId id = restoreEntityId(child);
final String warning = child.getString(VALUE);
warnings.add(new EntityWarning() {
@Override
public IntegrationEntityId getIntegrationEntityId() {
return id;
}