code: public static long getPropertyAsLong(String name)
              throws MissingPropertyException, BadPropertyException {
          if (PropertiesManager.props == null) loadProps();
          try {
              return Long.parseLong(getProperty(name));
          } catch (NumberFormatException nfe) {
              throw new BadPropertyException(name, getProperty(name), "long");
          }
      }
docs: Returns the value of a property for a given name as a <code>long</code>
  
  @param name the name of the requested property
  @return value the property's value as a <code>long</code>
  @throws MissingPropertyException - if the property is not set
  @throws BadPropertyException - if the property cannot be parsed as a long