MapHierarchicalModel<?> navigationLinks = ( ( MapHierarchicalModel<?> ) event.getModel() )
.createChildMap( "navigationLinks" );
Collection<Property<T>> fieldNames = getNonSelectedFields( selector, instanceType, instance );
SelectorParser selectorParser = event.getRequestContext().getSelectorParser();
String format;
if (selectorParser instanceof LinkedInSelectorParser)
{
format = "%s?selector=:(%s)";
}
else if (selectorParser instanceof GDataSelectorParser)
{
format = "%s?selector=%s";
}
else
{
throw new IllegalStateException( "Unknown selector type: " + selectorParser.getClass().getName() );
}
for ( Property<?> field : fieldNames )
{
String fieldName = field.name();
MapHierarchicalModel<?> navModel = navigationLinks.createChildMap( fieldName );