// beware of classloading issues. better reflect on the actual instance
for (Class<?> intf : type.getInterfaces()) {
for (final Method method : intf.getDeclaredMethods()) {
if (RebindUtils.isMethodInInterface(remoteIface, method)) {
epts.put(RebindUtils.createCallSignature(method), new ConversationalEndpointCallback(new ServiceInstanceProvider() {
@Override
public Object get(Message message) {
if (message.hasPart(CDIProtocol.Qualifiers)) {
List<String> quals = message.get(List.class, CDIProtocol.Qualifiers);
Annotation[] qualAnnos = new Annotation[quals.size()];