private JmsComponent createEndpoint(boolean copyProperties) {
JmsComponent component = new JmsComponent();
JmsConsumerEndpoint endpoint = new JmsConsumerEndpoint();
endpoint.setService(new QName("jms"));
endpoint.setEndpoint("endpoint");
DefaultConsumerMarshaler marshaler = new DefaultConsumerMarshaler();
marshaler.setCopyProperties(copyProperties);
marshaler.setPropertyBlackList(blackList);
endpoint.setMarshaler(marshaler);
endpoint.setTargetService(new QName("receiver"));
endpoint.setListenerType("simple");
endpoint.setConnectionFactory(connectionFactory);
endpoint.setDestinationName("destination");