}
else if (object instanceof DistributionObject) {
return new NamedDistributionObject((DistributionObject) object);
}
else if (object instanceof StatefulTargetObject) {
return new NamedTargetObject((StatefulTargetObject) object);
}
else if (object instanceof TargetObject) {
return new NamedTargetObject((TargetObject) object);
}
return null;
}