@Override
protected PortletPreferences doImportData(
PortletDataContext portletDataContext, String portletId,
PortletPreferences portletPreferences, String data)
throws Exception {
<BUG>Group globalScopeGroup = GroupLocalServiceUtil.getCompanyGroup(
portletDataContext.getCompanyId());
long globalScopeGroupId = globalScopeGroup.getGroupId();</BUG>
portletDataContext.importPermissions(
<BUG>_PERMISSION_NAMESPACE,
portletDataContext.getSourceGroupId(),</BUG>
portletDataContext.getScopeGroupId());

@Override
protected PortletPreferences doImportData(
PortletDataContext portletDataContext, String portletId,
PortletPreferences portletPreferences, String data)
throws Exception {
portletDataContext.importPermissions(
"com.liferay.portlet.mobiledevicerules",
portletDataContext.getSourceGroupId(),
portletDataContext.getScopeGroupId());
