public void writeAllInstances(String targetPath)
        {
            Boolean isHaveMetaInPackageXml = m_workflows.Count > 0;
            String  mergeDirectory;
            String  directoryMain;

            if (isHaveMetaInPackageXml)
            {
                mergeDirectory = String.Concat(targetPath, @"/", "_", MetaDirectory.getDirectory(MetaConstants.Workflow));
                directoryMain  = String.Concat(targetPath, @"/", MetaDirectory.getDirectory(MetaConstants.Workflow));


                foreach (KeyValuePair <string, Workflow> m_workflow in m_workflows)
                {
                    String directoryForObject = "";


                    String filename = String.Concat(m_workflow.Key, ".workflow");

                    if (ManageFileExists.verifyFileInDirectory(String.Concat(directoryMain, @"/", filename)))
                    {
                        directoryForObject = directoryMain;
                    }
                    else
                    {
                        directoryForObject = directoryMain;
                    }

                    ManageFileDirectory.createPackageDirectory(directoryForObject);


                    ManageXMLWorkflow.doWrite(m_workflow.Value, String.Concat(directoryForObject, @"/"), filename);
                }
            }
        }
        public void writeAllInstances(String targetPath)
        {
            Boolean isHaveObjectInPackageXml = m_customObjects.Count > 0;
            String  mergeDirectory;
            String  directoryMain;

            if (isHaveObjectInPackageXml)
            {
                mergeDirectory = String.Concat(targetPath, @"/", "_", MetaDirectory.getDirectory(MetaConstants.CustomObject));
                directoryMain  = String.Concat(targetPath, @"/", MetaDirectory.getDirectory(MetaConstants.CustomObject));


                foreach (KeyValuePair <string, CustomObject> m_object in m_customObjects)
                {
                    String directoryForObject = "";

                    String filename = String.Concat(m_object.Key, ".object");

                    if (ManageFileExists.verifyFileInDirectory(String.Concat(mergeDirectory, @"/", filename)))
                    {
                        directoryForObject = mergeDirectory;
                    }
                    else
                    {
                        directoryForObject = mergeDirectory;
                    }

                    ManageFileDirectory.createPackageDirectory(directoryForObject);


                    ManageXMLCustomObject.doWrite(m_object.Value, String.Concat(directoryForObject, @"/"), filename);
                }
            }
        }