public static int getFoldersCount(long repositoryId, long parentFolderId) throws RemoteException {
    try {
      int returnValue = DLAppServiceUtil.getFoldersCount(repositoryId, parentFolderId);

      return returnValue;
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }