//System.out.println("listeners:" + listeners.toString());
return listeners.toArray(new InvocationListener[listeners.size()]);
}
private static void addListener(final Collection<InvocationListener> listeners, final String key, final InvocationListener listener) {
InvocationListener autoset;
try {
autoset = IoCs.autoSet(key, listener);
} catch (final Exception e) {
autoset = listener;
}