public long getLong(String property) {
    return getProperty(property, value -> {
      try {
        return Long.valueOf(value);
      } catch (NumberFormatException e) {
        throw new ConfigurationException("malformed property value: " + property + " must be a long");
      }
    });
  }
public long getLong ( String property ) { return getProperty ( property , value -> { try { return Long . valueOf ( value ) ; } catch ( NumberFormatException e ) { throw new ConfigurationException ( "malformed property value: " + property + " must be a long" ) ; } } ) ; }
Reads a long property.

@param property The property name.
@return The property value.
@throws ConfigurationException if the property is not present