* Returns an {@link Iterable} of {@link org.jclouds.management.ViewMBean} for the specified {@link View}.
* @param view
* @return
*/
private static Iterable<ViewMBean> viewManagementOf(final View view) {
TypeToken type = TypeToken.of(view.getClass());
return Iterables.transform(ViewMBeanFactories.forType(type), new Function<ViewMBeanFactory, ViewMBean>() {
@Override
public ViewMBean apply(@Nullable ViewMBeanFactory factory) {
return factory.create(view);
}