// Display related placements.
if (page.getEntries() != null && page.getEntries().length > 0) {
for (TargetingIdea targetingIdea : page.getEntries()) {
Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
Placement placement =
(Placement) ((CriterionAttribute) data.get(AttributeType.CRITERION)).getValue();
SiteConstantsPlacementType placementType =
((PlacementTypeAttribute) data.get(AttributeType.PLACEMENT_TYPE)).getValue();
System.out.println("Placement with url '" + placement.getUrl() + "' and type '"
+ placementType.toString() + "' was found.");
}
} else {
System.out.println("No related placements were found.");
}