}
@SuppressWarnings({ "rawtypes", "unchecked" })
public int resetMessEngine(Object object) {
int count = 0;
MessageListenerClass selector = AnnotationUtils.findAnnotation(object.getClass(), MessageListenerClass.class);
if (selector != null && object instanceof MessageListener) {
MessageListener listener = (MessageListener) object;
messEngine.removeMessageListener(selector.value(), listener);
count++;
}
List<Method> messageMethods = getMethods(object.getClass(), MessageMethod.class);
if (messageMethods.size() == 0) {
return count;