private void setMaxFilesPerPage(ViewContext context) {
    String maxFilesPerPageProperty = context.getAmbariProperty(FILES_VIEW_MAX_FILE_PER_PAGE);
    LOG.info("maxFilesPerPageProperty = {}", maxFilesPerPageProperty);
    if(!Strings.isNullOrEmpty(maxFilesPerPageProperty)){
      try {
        maxFilesPerPage = Integer.parseInt(maxFilesPerPageProperty);
      }catch(Exception e){
        LOG.error("{} should be integer, but it is {}, using default value of {}", FILES_VIEW_MAX_FILE_PER_PAGE , maxFilesPerPageProperty, DEFAULT_FILES_VIEW_MAX_FILE_PER_PAGE);
      }
    }
  }
Constructor
@param context View Context instance
contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/FileOperationService.java