private void initializeDirectiveManager()
{
String directiveManagerTypeName = configuration.GetString("directive.manager");
if (directiveManagerTypeName == null)
{
throw new System.Exception("Looks like there's no 'directive.manager' " +
"configured. NVelocity can't go any further");
}
directiveManagerTypeName = directiveManagerTypeName.Replace(';', ',');
Type dirMngType = Type.GetType(directiveManagerTypeName, false, false);
if (dirMngType == null)
{
throw new System.Exception(
String.Format("The type {0} could not be resolved", directiveManagerTypeName));
}
directiveManager = (IDirectiveManager) Activator.CreateInstance(dirMngType);
}