private static IGenericObject CreateCustomObject(IApp theApp)
        {
            // Creates a session object with a custom type.
            var customObjectProperties = new GenericObjectProperties {
                Info = new NxInfo {
                    Type = "mycustomtype"
                }
            };

            return(theApp.CreateGenericSessionObject(customObjectProperties));
        }