private object CreateServices(Type serviceType)
{
object service = null;
if (typeof(EnvDTE.ProjectItem) == serviceType)
{
service = GetAutomationObject();
}
else if (typeof(DesignerContext) == serviceType)
{
service = this.DesignerContext;
}
return service;
}