throw new IllegalArgumentException("The name of a property must not be an empty String.");
}
if (!isValidJavaIdentifier(name))
{
throw new JMSRuntimeException("The property name '" + name + "' is not a valid java identifier.");
}
if (HornetQMessage.reservedIdentifiers.contains(name))
{
throw new JMSRuntimeException("The property name '" + name + "' is reserved due to selector syntax.");
}
if (name.startsWith("JMS_HORNETQ"))
{
throw new JMSRuntimeException("The property name '" + name + "' is illegal since it starts with JMS_HORNETQ");
}
}