correction issue 1783

In ref to #1783 

Give the type of the shared resource dynamically.

But need a way to translate it.