internal static string GetSmartObjectName(SmartObjectManagementServerWrapper managementServer, string serviceObjectName, ServiceInstanceSettings serviceInstanceSettings)
        {
            var preSmartObjectName  = string.Concat(serviceInstanceSettings.Name, "_");
            var smartObjectExplorer = managementServer.GetSmartObjects(SearchProperty.SystemName, SearchOperator.EndsWith, string.Concat("_", serviceObjectName));

            return((from s in smartObjectExplorer.SmartObjectList
                    where s.Name.StartsWith(preSmartObjectName)
                    select s.Name).FirstOrDefault());
        }
        internal static bool ContainsSmartObject(SmartObjectManagementServerWrapper server, string systemName)
        {
            server.ThrowIfNull("server");

            return(server.GetSmartObjects(systemName).SmartObjectList.Any());
        }