for ( Map.Entry<String, Object> entry : properties.entrySet() )
{
String key = entry.getKey();
for ( Object value : IoPrimitiveUtils.asArray( entry.getValue() ) )
{
<BUG>type.addToDocument( document, key, value );
}
}
writer().addDocument( document );
}</BUG>
catch ( IOException e )

for ( Map.Entry<String, Object> entry : properties.entrySet() )
{
String key = entry.getKey();
for ( Object value : IoPrimitiveUtils.asArray( entry.getValue() ) )
{
type.addToDocument( document, key, value );
if ( createdNow )
{
addToCache( entityId, key, value );
}
}
}
writer.addDocument( document );
}
