added operationresource as an alternative method to create the resource needed for the metadata