PropertyTranslator chained = new PropertyTranslator()
{
public Set<Property> typesafeToProperties(Object object, Path path, boolean indexed)
{
HashSet<Property> properties = new HashSet<Property>();
properties.add(new SimpleProperty(new Path.Builder(path).field("first").build(), object, indexed));
properties.add(new SimpleProperty(new Path.Builder(path).field("second").build(), object, indexed));
return properties;
}
public Object propertiesToTypesafe(Set<Property> properties, Path path, Type type)
{