// eager test of the filter syntax as required by JMS spec
try
{
if (filterString != null)
{
new FilterParser().parse(new SimpleString(filterString.trim()), new HashMap<SimpleString, Identifier>());
}
}
catch (ParseException e)
{
throw JMSExceptionHelper.convertFromHornetQException(HornetQJMSClientBundle.BUNDLE.invalidFilter(e, new SimpleString(filterString)));