contract.setCallbackName(getBaseName(callback));
contract.setCallbackClass(callback);
contract.setCallbackOperations(getOperations(callback, remotable));
}
Scope interactionScope = type.getAnnotation(Scope.class);
if (interactionScope == null) {
contract.setInteractionScope(InteractionScope.NONCONVERSATIONAL);
} else {
if ("CONVERSATIONAL".equalsIgnoreCase(interactionScope.value())) {
contract.setInteractionScope(InteractionScope.CONVERSATIONAL);
} else {
contract.setInteractionScope(InteractionScope.NONCONVERSATIONAL);
}
}