public AFGHGlobalParameters(String cp) {
    try {
      curveParams = new DefaultCurveParameters();

      ByteArrayInputStream is = new ByteArrayInputStream(cp.getBytes());
      ((DefaultCurveParameters) curveParams).load(is);
      initialize(curveParams);
    } catch (Exception ex) {
      Logger.getLogger(AFGHGlobalParameters.class.getName()).log(Level.SEVERE, null, ex);
    }
  }
 public AFGHGlobalParameters(InputStream is) {
   curveParams = new DefaultCurveParameters();
   ((DefaultCurveParameters) curveParams).load(is);
   initialize(curveParams);
 }