//$Id: FormManipulationFilter.bsh,v 1.1.4.1 2002/10/21 11:53:40 chinnaraj Exp $
String[] hosts = {"localhost" , "host1"};
hostVector = new Vector();
length = hosts.length;
for(i = 0 ; i < length ; i++)
{
	hostVector.addElement(hosts[i]);
}
NEInputs = template.getNEInputs();//Getting the NEInput objects from the default variable "template".
size = NEInputs.size();
for(i = 0 ; i < size ; i++)
{
	devices = NEInputs.elementAt(i).getSubTagsByName("Device");
	for(j = 0 ; j < devices.size() ; j++)
	{
		MOName = devices.elementAt(j).getDeviceName();
		// If the MOName is present in the list, then the editable UserInput tags are removed.
		if(hostVector.contains(MOName))
		{
			forms = template.getForms();
			for(l = 0 ; l < forms.size() ; l++)
			{
				form = forms.elementAt(l);
				element = form.getElement();
				userInputs = form.getUserInputs();
				size1 = userInputs.size();
				for(k = 0 ; k < size1 ; k++)
				{
					userInput = userInputs.elementAt(k);
					editable = userInput.getAttribute("editable");
					if(!editable.equals("false"))
					{
						element.removeChild(userInput.getElement());
					}
				}
			}

		}
	}
}
return template;
