public InstrumentHeader createInstrumentHeader(InstrumentType instrumentType,EgwStatus status){
  InstrumentHeader instrHdr=new InstrumentHeader();
  instrHdr.setInstrumentAmount(BigDecimal.valueOf(1000));
  instrHdr.setStatusId(status);
  instrHdr.setInstrumentType(instrumentType);
  User user=createUser("testUser");
  instrHdr.setCreatedBy(user);
  instrHdr.setCreatedDate(new Date());
  instrHdr.setCreatedDate(new Date());
  instrHdr.setModifiedBy(user);
  instrHdr.setModifiedDate(new Date());
  session.saveOrUpdate(instrHdr);
  return instrHdr;
}

public InstrumentHeader createInstrumentHeader ( InstrumentType instrumentType , EgwStatus status ) { InstrumentHeader instrHdr = new InstrumentHeader ( ) ; instrHdr . setInstrumentAmount ( BigDecimal . valueOf ( 1000 ) ) ; instrHdr . setStatusId ( status ) ; instrHdr . setInstrumentType ( instrumentType ) ; User user = createUser ( "testUser" ) ; instrHdr . setCreatedBy ( user ) ; instrHdr . setCreatedDate ( new Date ( ) ) ; instrHdr . setCreatedDate ( new Date ( ) ) ; instrHdr . setModifiedBy ( user ) ; instrHdr . setModifiedDate ( new Date ( ) ) ; session . saveOrUpdate ( instrHdr ) ; return instrHdr ; }
todo : check if this can be removed and the subsequent createinstrumentheader method can be used in its place
