private String preProcessSignature(String signature){
  int index;
  if ((index=signature.indexOf(" throws")) > 0) {
    signature=signature.substring(0,index);
  }
  while ((index=signature.indexOf("java.lang.")) > 0) {
    signature=signature.substring(0,index) + signature.substring(index + 10,signature.length());
  }
  return signature;
}

private String preProcessSignature ( String signature ) { int index ; if ( ( index = signature . indexOf ( " throws" ) ) > 0 ) { signature = signature . substring ( 0 , index ) ; } while ( ( index = signature . indexOf ( "java.lang." ) ) > 0 ) { signature = signature . substring ( 0 , index ) + signature . substring ( index + 10 , signature . length ( ) ) ; } return signature ; }
this method chops off the throws exceptions , removes " java . lang " .
