}
});
}
public Filterable createFilterable() {
return new Filterable() {
public <T> T getBodyAs(Class<T> type) throws FilterException {
try {
if( type == UTF8Buffer.class ) {
if ( Message.this instanceof ActiveMQTextMessage ) {
return type.cast(((ActiveMQTextMessage)Message.this).getText());