DECLARE @nowTime int
SET @nowTime = datediff(second, '01/01/1970', getUTCDate())

DECLARE @internalLocation int
SELECT @internalLocation=LocationId from WF_SchemaLocation where LocationUrl = 'workflow_activities.jar'

IF (@internalLocation IS NULL)
BEGIN
	insert into WF_SchemaLocation(LocationUrl, LocationType, Modified) 
	values ('workflow_activities.jar', 0, @nowTime)
	SET @internalLocation = @@IDENTITY
END
ELSE
BEGIN
	update WF_SchemaLocation
	set Modified=@nowTime
	where LocationId = @internalLocation
END

DECLARE @XsdSchema nvarchar(max)
DECLARE @namespace nvarchar(255)
