Code example for TransformerException

0
                  return (Function) m_functions_customer[
                      which-NUM_BUILT_IN_FUNCS].newInstance();                  
          }catch (IllegalAccessException ex){
                  throw new TransformerException(ex.getMessage());
          }catch (InstantiationException ex){
                  throw new TransformerException(ex.getMessage());
          } 
  } 
   
  /** 
   * Obtain a function ID from a given function name 
   * @param key the function name in a java.lang.String format. 
   * @return a function ID, which may correspond to one of the FUNC_XXX values 
   * found in {@link org.apache.xpath.compiler.FunctionTable}, but may be a  
   * value installed by an external module. 
   */ 
  Object getFunctionID(String key){
          Object id = m_functionID_customer.get(key);
          if (null == id) id = m_functionID.get(key);
          return id;
  }