private SecurityFunctionEntity createSecurityFunctionEntity(String code){
  SecurityFunctionEntity securityFunctionEntity=new SecurityFunctionEntity();
  securityFunctionEntity.setCode(code);
  return herdDao.saveAndRefresh(securityFunctionEntity);
}

private SecurityFunctionEntity createSecurityFunctionEntity ( String code ) { SecurityFunctionEntity securityFunctionEntity = new SecurityFunctionEntity ( ) ; securityFunctionEntity . setCode ( code ) ; return herdDao . saveAndRefresh ( securityFunctionEntity ) ; }
creates and persists a security function entity .
