initialize( position, decorator.getLabel(), graph );
setProperty( "Description", decorator.getDescription() );
setProperty( "URI", decorator.getUri() );
ResourceDetails details = decorator.getDetails();
if( details != null )
{
String contents = details.getLabel() + "\n\n" + details.getValue();
setProperty( "Contents", contents );
setProperty( "Field", details.getField() );
setProperty( "Label", details.getLabel() );
}
else
{
setProperty( "Contents", decorator.getDescription() );
}