public static com.liferay.portlet.shopping.model.ShoppingCategoryModel[] getCategories( com.liferay.portlet.shopping.model.ShoppingCategory category) throws RemoteException { try { java.util.List returnValue = ShoppingCategoryServiceUtil.getCategories(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()); } }