private List loadJavaAPIMasterDataList(final String className,final String methodName,final String parametertype[],final String parametervalue[]) throws ApplicationRuntimeException {
  List list=null;
  try {
    if (parametertype.length != parametervalue.length)     throw new ApplicationRuntimeException("Number of parameter types and parameter values doesnt match");
    final Class cls=Class.forName(className);
    final Method method=cls.getMethod(methodName,loadMethodParameter(parametertype));
    list=(List)method.invoke(cls.newInstance(),loadMethodArguments(parametertype,parametervalue));
  }
 catch (  final Exception e) {
    LOGGER.error("Error occurred in EgovMasterDataCaching loadJavaAPIMasterDataList",e);
    throw new ApplicationRuntimeException("Error occurred in EgovMasterDataCaching loadJavaAPIMasterDataList",e);
  }
  return list;
}

private List loadJavaAPIMasterDataList ( final String className , final String methodName , final String parametertype [ ] , final String parametervalue [ ] ) throws ApplicationRuntimeException { List list = null ; try { if ( parametertype . length != parametervalue . length ) throw new ApplicationRuntimeException ( "Number of parameter types and parameter values doesnt match" ) ; final Class cls = Class . forName ( className ) ; final Method method = cls . getMethod ( methodName , loadMethodParameter ( parametertype ) ) ; list = ( List ) method . invoke ( cls . newInstance ( ) , loadMethodArguments ( parametertype , parametervalue ) ) ; } catch ( final Exception e ) { LOGGER . error ( "Error occurred in EgovMasterDataCaching loadJavaAPIMasterDataList" , e ) ; throw new ApplicationRuntimeException ( "Error occurred in EgovMasterDataCaching loadJavaAPIMasterDataList" , e ) ; } return list ; }
this method loads the data for type java api .
