code: @Override
  	public void setLayerInfo(VectorLayerInfo layerInfo) throws LayerException {
  		super.setLayerInfo(layerInfo);
  		srid = geoService.getSridFromCrs(layerInfo.getCrs());
  		entityMapper = new HibernateEntityMapper(getSessionFactory());
  	}
docs: -------------------------------------------------------------------------