// Path: core/domain/src/main/java/org/restcomm/camelgateway/CamelOAMMessages.java
// public interface CamelOAMMessages {
// 	
// 	/**
// 	 * Generic constants
// 	 */
// 	public static final String TAB = "        ";
// 	
// 	public static final String SPACE = " ";
// 	
// 	public static final String NEW_LINE = "\n";
// 
// 	public static final String COMMA = ",";
// 	
// 	
// 	public static final String CREATE_NETWORK_RULE_FAIL_ALREADY_EXIST = "Creation of network routing rule failed. Rule already exist";
// 	
// 	public static final String NULL_RULE_TYPE = "Rule type cannot be null";
// 	
// 	public static final String DELETE_RULE_FAILED_NO_RULE_FOUND = "No network routing rule found for %d";
// 	
// 	public static final String INVALID_ROUTING_RULE_URL = "Invalid routing rule URL";
// 	
// 	public static final String CREATE_NETWORK_RULE_SUCCESSFULL = "Successfully created routing rule for network id=%d";
// 	
// 	public static final String DELETE_NETWORK_RULE_SUCCESSFUL = "Successfully deleted routing rule for network id=%d";
// 	
// 	public static final String NO_NETWORK_RULE_DEFINED_YET = "No network routing rule defined yet";
// 
// 	public static final String INVALID_COMMAND = "Invalid Command";
// 
// 	public static final String PARAMETER_SUCCESSFULLY_SET = "Parameter has been successfully set";
// 	
// 	
// 	public static final String SHOW_NETWORK_ID = "Network id=";
// 	
// 	public static final String SHOW_URL = " URL=";
// 	
// 	public static final String SHOW_EXACT_MATCH = " Exact Match=";
// 
// }


import javolution.xml.XMLSerializable;
import javolution.xml.stream.XMLStreamException;
import org.restcomm.camelgateway.CamelOAMMessages;
import javolution.xml.XMLFormat;
			if (other.ruleUrl != null)
				return false;
		} else if (!ruleUrl.equals(other.ruleUrl))
			return false;
		return true;
	}

	/**
	 * XML Serialization/Deserialization
	 */
	protected static final XMLFormat<NetworkRoutingRule> ESME_XML = new XMLFormat<NetworkRoutingRule>(
			NetworkRoutingRule.class) {

		@Override
		public void read(javolution.xml.XMLFormat.InputElement xml,
				NetworkRoutingRule esme) throws XMLStreamException {
			esme.networkId = xml.getAttribute(NETWORK_ID, -1);
			esme.ruleUrl = xml.getAttribute(RULE_URL, null);
		}

		@Override
		public void write(NetworkRoutingRule esme,
				javolution.xml.XMLFormat.OutputElement xml)
				throws XMLStreamException {
			xml.setAttribute(NETWORK_ID, esme.networkId);
			xml.setAttribute(RULE_URL, esme.ruleUrl);
		}
	};

	public void show(StringBuffer sb) {
// Path: core/domain/src/main/java/org/restcomm/camelgateway/CamelOAMMessages.java
// public interface CamelOAMMessages {
// 	
// 	/**
// 	 * Generic constants
// 	 */
// 	public static final String TAB = "        ";
// 	
// 	public static final String SPACE = " ";
// 	
// 	public static final String NEW_LINE = "\n";
// 
// 	public static final String COMMA = ",";
// 	
// 	
// 	public static final String CREATE_NETWORK_RULE_FAIL_ALREADY_EXIST = "Creation of network routing rule failed. Rule already exist";
// 	
// 	public static final String NULL_RULE_TYPE = "Rule type cannot be null";
// 	
// 	public static final String DELETE_RULE_FAILED_NO_RULE_FOUND = "No network routing rule found for %d";
// 	
// 	public static final String INVALID_ROUTING_RULE_URL = "Invalid routing rule URL";
// 	
// 	public static final String CREATE_NETWORK_RULE_SUCCESSFULL = "Successfully created routing rule for network id=%d";
// 	
// 	public static final String DELETE_NETWORK_RULE_SUCCESSFUL = "Successfully deleted routing rule for network id=%d";
// 	
// 	public static final String NO_NETWORK_RULE_DEFINED_YET = "No network routing rule defined yet";
// 
// 	public static final String INVALID_COMMAND = "Invalid Command";
// 
// 	public static final String PARAMETER_SUCCESSFULLY_SET = "Parameter has been successfully set";
// 	
// 	
// 	public static final String SHOW_NETWORK_ID = "Network id=";
// 	
// 	public static final String SHOW_URL = " URL=";
// 	
// 	public static final String SHOW_EXACT_MATCH = " Exact Match=";
// 
// }


// Path: core/domain/src/main/java/org/restcomm/camelgateway/rules/NetworkRoutingRule.java
import javolution.xml.XMLSerializable;
import javolution.xml.stream.XMLStreamException;
import org.restcomm.camelgateway.CamelOAMMessages;
import javolution.xml.XMLFormat;

			if (other.ruleUrl != null)
				return false;
		} else if (!ruleUrl.equals(other.ruleUrl))
			return false;
		return true;
	}

	/**
	 * XML Serialization/Deserialization
	 */
	protected static final XMLFormat<NetworkRoutingRule> ESME_XML = new XMLFormat<NetworkRoutingRule>(
			NetworkRoutingRule.class) {

		@Override
		public void read(javolution.xml.XMLFormat.InputElement xml,
				NetworkRoutingRule esme) throws XMLStreamException {
			esme.networkId = xml.getAttribute(NETWORK_ID, -1);
			esme.ruleUrl = xml.getAttribute(RULE_URL, null);
		}

		@Override
		public void write(NetworkRoutingRule esme,
				javolution.xml.XMLFormat.OutputElement xml)
				throws XMLStreamException {
			xml.setAttribute(NETWORK_ID, esme.networkId);
			xml.setAttribute(RULE_URL, esme.ruleUrl);
		}
	};

	public void show(StringBuffer sb) {
		sb.append(CamelOAMMessages.SHOW_NETWORK_ID).append(this.networkId)