code: protected void validate(String operationType) throws Exception
  	{
  		super.validate(operationType);
  
  		MPSString mapped_port_validator = new MPSString();
  		mapped_port_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);
  		mapped_port_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);
  		mapped_port_validator.validate(operationType, mapped_port, "\"mapped_port\"");
  		
  		MPSIPAddress host_ip_address_validator = new MPSIPAddress();
  		host_ip_address_validator.validate(operationType, host_ip_address, "\"host_ip_address\"");
  		
  		MPSString port_validator = new MPSString();
  		port_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);
  		port_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);
  		port_validator.validate(operationType, port, "\"port\"");
  		
  		MPSString state_validator = new MPSString();
  		state_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);
  		state_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);
  		state_validator.validate(operationType, state, "\"state\"");
  		
  		MPSString pair_port_validator = new MPSString();
  		pair_port_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);
  		pair_port_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);
  		pair_port_validator.validate(operationType, pair_port, "\"pair_port\"");
  		
  		MPSString mode_validator = new MPSString();
  		mode_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 32);
  		mode_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);
  		mode_validator.validate(operationType, mode, "\"mode\"");
  		
  	}
docs: <pre>
  Performs generic data validation for the operation to be performed
  </pre>