public static Integer databaseHistoryLevel(CommandContext commandContext) {

    try {
      PropertyEntity historyLevelProperty =  commandContext.getPropertyManager().findPropertyById("historyLevel");
      return historyLevelProperty != null ? new Integer(historyLevelProperty.getValue()) : null;
    }
    catch (Exception e) {
      LOG.couldNotSelectHistoryLevel(e.getMessage());
      return null;
    }

  }
public static Integer databaseHistoryLevel ( CommandContext commandContext ) { try { PropertyEntity historyLevelProperty = commandContext . getPropertyManager ( ) . findPropertyById ( "historyLevel" ) ; return historyLevelProperty != null ? new Integer ( historyLevelProperty . getValue ( ) ) : null ; } catch ( Exception e ) { LOG . couldNotSelectHistoryLevel ( e . getMessage ( ) ) ; return null ; } }
@return Integer value representing the history level or <code>null</code> if none found