@WebMethod
public long findByCode(@WebParam(name="code") String code) throws PREEJBServiceException{
List<Division> ds=manager.findByCode(code);
if(ds.isEmpty()){
throw new PREEJBServiceException("No such division code=["+code+"]");
}
return ds.get(0).getId();
}