public static com.liferay.portlet.shopping.model.ShoppingCategoryModel[] getParentCategories( com.liferay.portlet.shopping.model.ShoppingCategory category) throws RemoteException { try { java.util.List returnValue = ShoppingCategoryServiceUtil.getParentCategories(category); return (com.liferay.portlet.shopping.model.ShoppingCategory[]) returnValue.toArray(new com.liferay.portlet.shopping.model.ShoppingCategory[0]); } catch (Exception e) { throw new RemoteException(e.getMessage()); } }