resource.addProperty(p);
}
if (supportUnmarshall) {
String stringmap = DefaultGroovyMethods.inspect(map);
InternalCompassSession compassSession = context.getSession();
InternalCompass compass = compassSession.getCompass();
SearchEngineFactory searchEngineFactory = compass.getSearchEngineFactory();
PropertyNamingStrategy propertyNamingStrategy =
searchEngineFactory.getPropertyNamingStrategy();
// save stringifiedmap map (under an internal name)
String keyPath = propertyNamingStrategy.buildPath(resourcePropertyMapping.getPath(), "stringmap").getPath();