XML Import Files
A Java-based Resource Provider uses the metadata.xml file in a ThingWorx extension to describe and load the class as the implementation of a ThingPackage for the resource provider thing template and thing. For example, the following are the XML elements for the ThingWorx asset resource provider:
<ThingPackages>
        <ThingPackage name="PTC.Resource.Asset.ThingworxAssetResourceProviderPackage"
                      description="PTC Asset resource provider package"
                      className="com.ptc.resource.asset.ThingworxAssetResourceProvider"
                      aspect.isSystemObject="false" aspect.isCreatable="true" tags="PTC:Asset">
            <HandlerDefinitions />
        </ThingPackage>
    </ThingPackages>

    <ThingTemplates>
        <ThingTemplate name="PTC.Resource.Asset.ThingworxAssetResourceProviderTemplate"
                       description="Default Asset Template"
                       thingPackage="PTC.Resource.Asset.ThingworxAssetResourceProviderPackage"
                       aspect.isSystemObject="false"
                       tags="PTC:Asset">
            <avatar/>
        </ThingTemplate>
    </ThingTemplates>

    <Things>
        <Thing description="Asset Provider that finds Things based on implementing shapes" documentationContent=""
               aspect.isEditableExtensionObject="true" enabled="true" published="false" tags="PTC:Asset"
               name="PTC.Resource.Asset.ThingworxAssetResourceProvider"
               thingTemplate="PTC.Resource.Asset.ThingworxAssetResourceProviderTemplate">
        </Thing>
    </Things>