JahiaContentManagementService.App.getInstance().getManagerConfiguration(config, new BaseAsyncCallback<GWTManagerConfiguration>() {
public void onSuccess(GWTManagerConfiguration config) {
PermissionsUtils.loadPermissions(config.getPermissions());
if (embedded) {
panel.add(new ContentManager(filters, mimeTypes, selectedPaths, config, 250));
} else {
panel.add(new ContentManagerViewPort(filters, mimeTypes, selectedPaths, config));
}
}