}
MetadataFacetFactory metadataFacetFactory = metadataFacetFactories.get( facetId );
if ( metadataFacetFactory != null )
{
metadataFacet = metadataFacetFactory.createMetadataFacet( repositoryId, name );
Map<String, String> map = new HashMap<String, String>();
for ( Property property : JcrUtils.getProperties( node ) )
{
String p = property.getName();
if ( !p.startsWith( "jcr:" ) )