public AbstractComponent newComponent(EComponentType type)
			throws ComponentException {
		AbstractComponent component = null;
		if (type == null) {
			throw new ComponentException("Component type is null");
		} else if (type == EComponentType.CHARACTER) {
			component = new CharacterComponent();
			component.setType(type);
		} else {
			component = new TextComponent();
			component.setType(type);
		}
		return component;
	}