@SuppressWarnings("unchecked") @Beta public static <T extends StartableApplication> T newManagedApp(Class<T> type) { return (T) newManagedApp(EntitySpecs.appSpec(type)); }
@SuppressWarnings("unchecked") @Beta public static <T extends StartableApplication> T newManagedApp(Class<T> type, ManagementContext managementContext) { return (T) newManagedApp(EntitySpecs.appSpec(type), managementContext); }