private final List<DeployedEntityDescriptor> children;
public DescriptorImpl(Persistor p) {
String typeName = p.getString(ENTITY_TYPE);
EntityType type;
// Backwards compatibility for change made in 1.5.0 when EntityType.InterchangeProject
// was
// renamed to EntityType.Project:
if (typeName.equals("InterchangeProject")) {
type = EntityType.Project;
} else {
type = EntityType.valueOf(typeName);
}
this.id = type.getIntegrationId(p.getString(ENTITY_ID));
this.name = p.getString(ENTITY_NAME);
this.children = Lists.newArrayList();
}