/// <summary>
            /// Creates Function Artifact on Designspace Server
            /// </summary>
            /// <param name="f">Function that should be created</param>
            /// <returns></returns>
            public Cloud.Artifact CreateFunctionArtifact(Function f)
            {
                Cloud.Artifact artifact = workspace.createArtifact(functionType, package);
                Cloud.Property DTProperty = artifact.createProperty(workspace, Fields.DT);
                DTProperty.setValue(workspace, f.Properties.FUNC_DEVICETAG_FULLNAME.ToString());
                Cloud.Property NameProperty = artifact.createProperty(workspace, Fields.NAME);
                NameProperty.setValue(workspace, FunctionUtils.GetFunctionName(f));
                return artifact;

            }
 private void UpdateFunctions(IEnumerable<Function> updateFunctions)
 {
     //workspace.getArtifacts/functionArtifacts oder artefakte einzeln holen schneller??
     foreach (Function f in updateFunctions)
     {
         Cloud.Artifact a = workspace.getArtifactsWithProperty(Fields.DT, FunctionUtils.GetFunctionDT(f)).ElementAt(0);
         String functionName = FunctionUtils.GetFunctionName(f);
         if (!functionName.Equals(a.getPropertyValue(Fields.NAME)))
         {
             a.setPropertyValue(workspace, Fields.NAME, functionName);
             Debug.WriteLine("Update functionname");
         }
     }
 }