*/
public static Object createNewJmsProxy(JmsBean<?> jmsComponent, Class<?> intf)
{
try
{
final MethodHandler handler = new JmsProxyHandler(jmsComponent, intf);
final Class<?>[] interfaces = {Closable.class, Serializable.class, intf};
return WebBeansContext.getInstance().getProxyFactory().createProxy(handler, interfaces);