private int idToInt(String value){
  try {
    return Integer.valueOf(value);
  }
 catch (  NumberFormatException e) {
    throw new ConfigurationException("invalid type ID: " + value);
  }
}

private int idToInt ( String value ) { try { return Integer . valueOf ( value ) ; } catch ( NumberFormatException e ) { throw new ConfigurationException ( "invalid type ID: " + value ) ; } }
converts a string to an integer .
